[U-Boot] [PATCH 1/1] api: remove superfluous assignment

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jul 30 17:54:37 UTC 2017


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

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 api/api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/api.c b/api/api.c
index c368511704..4fae95d280 100644
--- a/api/api.c
+++ b/api/api.c
@@ -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;
-- 
2.13.2



More information about the U-Boot mailing list