Browse Source

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>
Robert P. J. Day 15 years ago
parent
commit
bcb324d68f
2 changed files with 0 additions and 8 deletions
  1. 0 4
      common/cmd_cache.c
  2. 0 4
      common/cmd_mgdisk.c

+ 0 - 4
common/cmd_cache.c

@@ -27,8 +27,6 @@
 #include <common.h>
 #include <common.h>
 #include <command.h>
 #include <command.h>
 
 
-#if defined(CONFIG_CMD_CACHE)
-
 static int on_off (const char *);
 static int on_off (const char *);
 
 
 int do_icache ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int do_icache ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
@@ -108,5 +106,3 @@ U_BOOT_CMD(
 	"[on, off]\n"
 	"[on, off]\n"
 	"    - enable or disable data (writethrough) cache"
 	"    - enable or disable data (writethrough) cache"
 );
 );
-
-#endif

+ 0 - 4
common/cmd_mgdisk.c

@@ -24,8 +24,6 @@
 #include <common.h>
 #include <common.h>
 #include <command.h>
 #include <command.h>
 
 
-#if defined (CONFIG_CMD_MG_DISK)
-
 #include <mg_disk.h>
 #include <mg_disk.h>
 
 
 int do_mg_disk_cmd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int do_mg_disk_cmd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
@@ -72,5 +70,3 @@ U_BOOT_CMD(
 	"    - sector read : mgd readsec [sector] [to] [counts]\n"
 	"    - sector read : mgd readsec [sector] [to] [counts]\n"
 	"    - sector write : mgd writesec [from] [sector] [counts]"
 	"    - sector write : mgd writesec [from] [sector] [counts]"
 );
 );
-
-#endif