summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/cmd_mmc.c2
-rw-r--r--common/command.c9
2 files changed, 2 insertions, 9 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 62a1c224d3..4c19df727a 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -144,7 +144,7 @@ static int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
U_BOOT_CMD(
mmcinfo, 1, 0, do_mmcinfo,
"display MMC info",
- "- dislay info of the current MMC device"
+ "- display info of the current MMC device"
);
static int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
diff --git a/common/command.c b/common/command.c
index f51df26bf9..50c84292c1 100644
--- a/common/command.c
+++ b/common/command.c
@@ -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 */