post: remove redundant condition
PATCH 1/1 post: remove redundant condition
(A && A == 0x20) is only true for (A == 0x20).
Signed-off-by Heinrich Schuchardt <[email protected]>
--- post/post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
post/post.c +1 -1
@@ -189,7 +189,7 @@ static void post_get_env_flags(int *test_flags) last =0 ; name = list;while (!last) { -while (*name && *name ==' ' ) +while (*name ==' ' ) name++;if (*name ==0 )break ;
--
2.27.0
PATCH 1/1 post: remove redundant condition
Quoted 8 lines · Heinrich Schuchardt
(A && A ==
0x20) is only true for (A ==0x20).Signed-off-by Heinrich Schuchardt <[email protected]>--- post/post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 post: remove redundant condition
In reply to Heinrich SchuchardtQuoted 4 lines · Heinrich Schuchardt
(A && A ==
0x20) is only true for (A ==0x20).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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201024/c7e22ac3/attachment.sig>