cmd: gpio: remove redundant assignment
PATCH 1/1 cmd: gpio: remove redundant assignment
The assigned value NULL is overwritten before being used. Remove the assignment.
Signed-off-by Heinrich Schuchardt <[email protected]>
--- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/gpio.c +1 -1
@@ -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.20.1
PATCH 1/1 cmd: gpio: remove redundant assignment
Quoted 9 lines · Heinrich Schuchardt
The assigned value NULL is overwritten before being used. Remove the assignment.
Signed-off-by Heinrich Schuchardt <[email protected]>--- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Bin Meng <[email protected]>
PATCH 1/1 cmd: gpio: remove redundant assignment
In reply to Heinrich SchuchardtQuoted 5 lines · Heinrich Schuchardt
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]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190826/44aa226f/attachment.sig>