diff options
| author | Heinrich Schuchardt <[email protected]> | 2019-08-22 22:19:41 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-26 11:46:27 -0400 |
| commit | e946b5d257c4782aca9271eb6c6ec410422025f1 (patch) | |
| tree | 907edcbca5c10b9625fee15a284f06124f6d98f0 /cmd/gpio.c | |
| parent | 208bdaf2ae5f31cf8bd20beedd36686e8624d52b (diff) | |
cmd: gpio: remove redundant assignment
The assigned value NULL is overwritten before being used. Remove the
assignment.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'cmd/gpio.c')
| -rw-r--r-- | cmd/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gpio.c b/cmd/gpio.c index 53366f36e76..eff36ab2af3 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; |
