aboutsummaryrefslogtreecommitdiff
path: root/cmd/gpio.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-08-22 22:19:41 +0200
committerTom Rini <trini@konsulko.com>2019-08-26 11:46:27 -0400
commite946b5d257c4782aca9271eb6c6ec410422025f1 (patch)
tree907edcbca5c10b9625fee15a284f06124f6d98f0 /cmd/gpio.c
parent208bdaf2ae5f31cf8bd20beedd36686e8624d52b (diff)
downloadu-boot-e946b5d257c4782aca9271eb6c6ec410422025f1.zip
u-boot-e946b5d257c4782aca9271eb6c6ec410422025f1.tar.gz
u-boot-e946b5d257c4782aca9271eb6c6ec410422025f1.tar.bz2
cmd: gpio: remove redundant assignment
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>
Diffstat (limited to 'cmd/gpio.c')
-rw-r--r--cmd/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gpio.c b/cmd/gpio.c
index 53366f3..eff36ab 100644
--- 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;