projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
208bdaf
)
cmd: gpio: remove redundant assignment
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Thu, 22 Aug 2019 20:19:41 +0000
(22:19 +0200)
committer
Tom Rini
<trini@konsulko.com>
Mon, 26 Aug 2019 15:46:27 +0000
(11:46 -0400)
The assigned value NULL is overwritten before being used. Remove the
assignment.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
cmd/gpio.c
patch
|
blob
|
history
diff --git
a/cmd/gpio.c
b/cmd/gpio.c
index 53366f36e768d0f1b60c072837532a07515e6850..eff36ab2af329df34e83bafee24a633a8380ae76 100644
(file)
--- a/
cmd/gpio.c
+++ b/
cmd/gpio.c
@@
-91,7
+91,7
@@
static int do_gpio_status(bool all, const char *gpio_name)
if (!gpio_name || !bank_name ||
!strncasecmp(gpio_name, bank_name, banklen)) {
- const char *p
= NULL
;
+ const char *p;
int offset;
p = gpio_name + banklen;