From e946b5d257c4782aca9271eb6c6ec410422025f1 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Thu, 22 Aug 2019 22:19:41 +0200 Subject: [PATCH] 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 --- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5