Explorar o código

Fix bug in 8641hpcn reset command with no args.

Signed-off-by: Haiying Wang <haiying.wang@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
Jon Loeliger %!s(int64=19) %!d(string=hai) anos
pai
achega
684623ce92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      board/mpc8641hpcn/mpc8641hpcn.c

+ 1 - 1
board/mpc8641hpcn/mpc8641hpcn.c

@@ -269,7 +269,7 @@ mpc8641_reset_board(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 	/*
 	 * No args is a simple reset request.
 	 */
-	if (argv <= 0) {
+	if (argc <= 1) {
 		out8(PIXIS_BASE + PIXIS_RST, 0);
 		/* not reached */
 	}