projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bee9e0
)
gpio: fix meaningless return expression
author
zhong jiang
<zhongjiang@huawei.com>
Tue, 24 Jul 2018 11:57:43 +0000
(19:57 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Sun, 29 Jul 2018 21:34:54 +0000
(23:34 +0200)
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>
drivers/gpio/gpio-ath79.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-ath79.c
b/drivers/gpio/gpio-ath79.c
index 684e9d6d6623d6f56b38321c935464cdd9dc1434..0a553d67604212a21edf0acf88bd798edc6f0c9c 100644
(file)
--- 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(