Skip to contentSkip to conversation

cmd: gpio: remove redundant assignment

PATCH New Heinrich Schuchardt 3 participants 3 messages Aug 22, 2019 – Aug 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: gpio: remove redundant assignment

The assigned value NULL is overwritten before being used. Remove the assignment.

---
 cmd/gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/gpio.c +1 -1
index 53366f36e7..eff36ab2af 100644
@@ -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

#2 lore raw

PATCH 1/1 cmd: gpio: remove redundant assignment

In reply to Heinrich Schuchardt
Quoted 5 lines · Heinrich Schuchardt

The assigned value NULL is overwritten before being used. Remove the assignment.

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>