Commit bcb324d68f7955c1136dafc944eb55db8ebaa601

Authored by Robert P. J. Day
Committed by Wolfgang Denk
1 parent ad53226156

Remove superfluous preprocessor tests from some cmd_*.c files.

A small number of common/cmd_*.c files contain preprocessor tests that
are apparently superfluous since those same tests are used in the
Makefile to control the compilation of those files.  Those tests are
clearly redundant as long as they surround the entirety of the source
in those files.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

Showing 2 changed files with 0 additions and 8 deletions Side-by-side Diff

... ... @@ -27,8 +27,6 @@
27 27 #include <common.h>
28 28 #include <command.h>
29 29  
30   -#if defined(CONFIG_CMD_CACHE)
31   -
32 30 static int on_off (const char *);
33 31  
34 32 int do_icache ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
... ... @@ -108,6 +106,4 @@
108 106 "[on, off]\n"
109 107 " - enable or disable data (writethrough) cache"
110 108 );
111   -
112   -#endif
... ... @@ -24,8 +24,6 @@
24 24 #include <common.h>
25 25 #include <command.h>
26 26  
27   -#if defined (CONFIG_CMD_MG_DISK)
28   -
29 27 #include <mg_disk.h>
30 28  
31 29 int do_mg_disk_cmd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
... ... @@ -72,6 +70,4 @@
72 70 " - sector read : mgd readsec [sector] [to] [counts]\n"
73 71 " - sector write : mgd writesec [from] [sector] [counts]"
74 72 );
75   -
76   -#endif