diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-07-24 14:57:43 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-07-30 00:34:54 +0300 |
commit | 23211b08c367bc9b22469c1460f5dbb67142e06d (patch) | |
tree | 52db8d741b7d53b3061ee24c79c58056a19a4990 | |
parent | 2bee9e067cad4446928cbdcdaf788be463e74240 (diff) | |
download | linux-23211b08c367bc9b22469c1460f5dbb67142e06d.tar.xz |
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: zhong jiang <zhongjiang@huawei.com>
Acked-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-ath79.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c index 684e9d6d6623..0a553d676042 100644 --- a/drivers/gpio/gpio-ath79.c +++ b/drivers/gpio/gpio-ath79.c @@ -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( |