Browse Source

lib_arm: do_bootm_linux() - correct a small mistake

This patch corrects a small bug in the "if" condition:
the parameter "flag" is 0 and the "if" condition is always true.
The result is - the boom command doesn't start the kernel.
Affected targets: all arm based.

Signed-off-by: Ilko Iliev <iliev@ronetix.at>
Ilko Iliev 16 năm trước cách đây
mục cha
commit
263b749e2e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib_arm/bootm.c

+ 1 - 1
lib_arm/bootm.c

@@ -67,7 +67,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 	char *commandline = getenv ("bootargs");
 	char *commandline = getenv ("bootargs");
 #endif
 #endif
 
 
-	if ((flag != 0) || (flag != BOOTM_STATE_OS_GO))
+	if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
 		return 1;
 		return 1;
 
 
 	theKernel = (void (*)(int, int, uint))images->ep;
 	theKernel = (void (*)(int, int, uint))images->ep;