From: Jon Loeliger Date: Thu, 22 Jun 2006 13:51:46 +0000 (-0500) Subject: Fix bug in 8641hpcn reset command with no args. X-Git-Tag: U-Boot-1_1_6~20^2~3^2~53^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=684623ce92c5fd32e7db2d6e016945a67c5ffaba;p=u-boot Fix bug in 8641hpcn reset command with no args. Signed-off-by: Haiying Wang Acked-by: Jon Loeliger --- 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 */ }