Explorar o código

NAND: Have nboot accept .e and .i as legacy no-ops.

This was intended to happen before, but a trivial bug prevented it.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Scott Wood %!s(int64=16) %!d(string=hai) anos
pai
achega
65d8bc94d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/cmd_nand.c

+ 1 - 1
common/cmd_nand.c

@@ -502,7 +502,7 @@ static int nand_load_image(cmd_tbl_t *cmdtp, nand_info_t *nand,
 
 	s = strchr(cmd, '.');
 	if (s != NULL &&
-	    (strcmp(s, ".jffs2") && !strcmp(s, ".e") && !strcmp(s, ".i"))) {
+	    (strcmp(s, ".jffs2") && strcmp(s, ".e") && strcmp(s, ".i"))) {
 		printf("Unknown nand load suffix '%s'\n", s);
 		show_boot_progress(-53);
 		return 1;