diff options
| author | Simon Glass <[email protected]> | 2016-03-19 02:18:38 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-04-01 17:17:40 -0400 |
| commit | f8bb69643550fccbf1df514deda53089da7940e3 (patch) | |
| tree | 769b0055eb9516ddad955b1219edefd5f421d8a6 /cmd/help.c | |
| parent | 74322201dde4593dc3194c702e95e5760e6b497a (diff) | |
Drop command-processing code when CONFIG_CMDLINE is disabled
Command parsing and processing code is not needed when the command line is
disabled. Remove this code in that case.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'cmd/help.c')
| -rw-r--r-- | cmd/help.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/help.c b/cmd/help.c index 6ff494d79ba..701ae7e9056 100644 --- a/cmd/help.c +++ b/cmd/help.c @@ -10,9 +10,13 @@ static int do_help(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { +#ifdef CONFIG_CMDLINE cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd); const int len = ll_entry_count(cmd_tbl_t, cmd); return _do_help(start, len, cmdtp, flag, argc, argv); +#else + return 0; +#endif } U_BOOT_CMD( |
