summaryrefslogtreecommitdiff
path: root/cmd/disk.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-09-08 21:26:39 -0400
committerTom Rini <trini@konsulko.com>2016-09-09 15:53:14 -0400
commitaca9814dc5e213c1a37a5d6bc7221240ad08e9a0 (patch)
treeb8be1c5444c30b05290d52996789f325a867523a /cmd/disk.c
parent645176d1d5c37c91ddb06c366678fbe302550387 (diff)
cmd: Rework disk.c usage
We only need the function found in cmd/disk.c when we have IDE, SCSI or USB_STORAGE enabled. While the first two are easy to get right, in the 3rd case we assume that the set of cases where we do have USB and do not enable USB_STORAGE are small enough that we can take the small bloat of un-discarded strings on gcc prior to 6.x Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/disk.c')
-rw-r--r--cmd/disk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cmd/disk.c b/cmd/disk.c
index 92de3af8a5..3d2a3d2204 100644
--- a/cmd/disk.c
+++ b/cmd/disk.c
@@ -8,8 +8,6 @@
#include <command.h>
#include <part.h>
-#if defined(CONFIG_CMD_IDE) || defined(CONFIG_SCSI) || \
- defined(CONFIG_USB_STORAGE)
int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
char *const argv[])
{
@@ -130,4 +128,3 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
return bootm_maybe_autostart(cmdtp, argv[0]);
}
-#endif