]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: gpio: remove redundant assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 22 Aug 2019 20:19:41 +0000 (22:19 +0200)
committerTom 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

index 53366f36e768d0f1b60c072837532a07515e6850..eff36ab2af329df34e83bafee24a633a8380ae76 100644 (file)
@@ -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;