From f8bb69643550fccbf1df514deda53089da7940e3 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 19 Mar 2016 02:18:38 -0600 Subject: 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 Reviewed-by: Tom Rini --- cmd/help.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/help.c b/cmd/help.c index 6ff494d79b..701ae7e905 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( -- cgit v1.2.1