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>
This commit is contained in:
Jon Loeliger 2006-06-22 08:51:46 -05:00
parent 8be429a5dd
commit 684623ce92

View file

@ -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 */
}