From: Heinrich Schuchardt Date: Thu, 22 Aug 2019 20:19:41 +0000 (+0200) Subject: cmd: gpio: remove redundant assignment X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e946b5d257c4782aca9271eb6c6ec410422025f1;p=u-boot.git cmd: gpio: remove redundant assignment The assigned value NULL is overwritten before being used. Remove the assignment. Signed-off-by: Heinrich Schuchardt Reviewed-by: Bin Meng --- diff --git a/cmd/gpio.c b/cmd/gpio.c index 53366f36e7..eff36ab2af 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;