From: Jon Loeliger <jdl@freescale.com>
Date: Thu, 22 Jun 2006 13:51:46 +0000 (-0500)
Subject: Fix bug in 8641hpcn reset command with no args.
X-Git-Tag: v2025.01-rc5-pxa1908~22941^2~3^2~53^2
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=684623ce92c5fd32e7db2d6e016945a67c5ffaba;p=u-boot.git

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

diff --git a/board/mpc8641hpcn/mpc8641hpcn.c b/board/mpc8641hpcn/mpc8641hpcn.c
index c6b2a5b3bf..2626cccb93 100644
--- a/board/mpc8641hpcn/mpc8641hpcn.c
+++ b/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 */
 	}