]> git.sur5r.net Git - u-boot/blobdiff - common/command.c
Prepare v2013.01.01
[u-boot] / common / command.c
index f51df26bf9fbde273211f645ed7a8aead7045dae..50c84292c166ef1fa5487997ce04298ae4fe834e 100644 (file)
@@ -40,15 +40,8 @@ int _do_help (cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t * cmdtp, int
        int i;
        int rcode = 0;
 
-       if (cmd_items > CONFIG_SYS_MAXARGS) {
-               printf("%s: cmd_items %d exceeds hardcoded limit %d."
-                      " Recompile with higher CONFIG_SYS_MAXARGS?\n",
-                      __func__, cmd_items, CONFIG_SYS_MAXARGS);
-               return -1;
-       }
-
        if (argc == 1) {        /*show list of commands */
-               cmd_tbl_t *cmd_array[CONFIG_SYS_MAXARGS];
+               cmd_tbl_t *cmd_array[cmd_items];
                int i, j, swaps;
 
                /* Make array of commands from .uboot_cmd section */