Forráskód Böngészése

post: remove redundant condition

(A && A == 0x20) is only true for (A == 0x20).

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Heinrich Schuchardt 3 éve
szülő
commit
86eeac7bcf
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      post/post.c

+ 1 - 1
post/post.c

@@ -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;