Skip to contentSkip to conversation

api: remove superfluous assignment

PATCH New Heinrich Schuchardt 3 participants 3 messages Jul 30, 2017 – Aug 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 api: remove superfluous assignment

No need to assign a value to sig if the next statement using sig is itself an assignment of a value to sig.

---
 api/api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
api/api.c +1 -1
index c368511704..4fae95d280 100644
@@ -625,7 +625,7 @@ int syscall(int call, int *retval, ...)
 
 void api_init(void)
 {
-	struct api_signature *sig = NULL;
+	struct api_signature *sig;
 
 	/* TODO put this into linker set one day... */
 	calls_table[API_RSVD] = NULL;
Signature · 1 line
2.13.2
#2 lore raw

PATCH 1/1 api: remove superfluous assignment

In reply to Heinrich Schuchardt
Quoted 5 lines · xypron.glpk at gmx.de

No need to assign a value to sig if the next statement using sig is itself an assignment of a value to sig.

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: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170813/31c1c0de/attachment.sig>