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>
This commit is contained in:
Heinrich Schuchardt 2019-08-22 22:19:41 +02:00 committed by Tom Rini
parent 208bdaf2ae
commit e946b5d257
1 changed files with 1 additions and 1 deletions

View 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;