api: remove superfluous assignment
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.
Signed-off-by Heinrich Schuchardt <[email protected]>
--- api/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
api/api.c +1 -1
@@ -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
PATCH 1/1 api: remove superfluous assignment
Quoted 8 lines · Heinrich Schuchardt
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 <[email protected]>--- api/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 api: remove superfluous assignment
In reply to Heinrich SchuchardtQuoted 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.
Signed-off-by Heinrich Schuchardt <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170813/31c1c0de/attachment.sig>