common/command.c: revert changes from commit 199adb60
authorAnatolij Gustschin <agust@denx.de>
Thu, 8 Nov 2012 11:40:17 +0000 (12:40 +0100)
committerAnatolij Gustschin <agust@denx.de>
Thu, 8 Nov 2012 12:18:10 +0000 (13:18 +0100)
commit22b6fcb50d06ee281a338e78f8d0a7c9ddee8629
treebca6d8c62dd0af05b0618af4468918594d3ac740
parent1cc619be8b73abbee2fd6faf2cd4ade27b516531
common/command.c: revert changes from commit 199adb60

commit 199adb601ff34bdbbd0667fac80dfe0a87bffc2b "common/misc: sparse
fixes" broke the help command trying to fix the sparse error
"command.c:44:38: error: bad constant expression".

As Henrik points out, the fix was bad because the commit used
CONFIG_SYS_MAXARGS whereas the code intended to use the maximum
number of commands (not arguments to a command).

Revert command.c changes to the original code as asked by Wolfgang.

Reported-by: Henrik Nordström <henrik@henriknordstrom.net>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
common/command.c