Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23211b08 authored by zhong jiang's avatar zhong jiang Committed by Linus Walleij
Browse files

gpio: fix meaningless return expression



Fix the following sparse error:

drivers/gpio/gpio-ath79.c:54:16: error: return expression in void function

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Acked-by: default avatarAlban Bedel <albeu@free.fr>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2bee9e06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg)
static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl,
			unsigned reg, u32 val)
{
	return writel(val, ctrl->base + reg);
	writel(val, ctrl->base + reg);
}

static bool ath79_gpio_update_bits(