mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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:
committed by
Tom Rini
parent
208bdaf2ae
commit
e946b5d257
@@ -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;
|
||||
|
Reference in New Issue
Block a user