summaryrefslogtreecommitdiff
path: root/cmd/disk.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-09-09 01:26:39 (GMT)
committerTom Rini <trini@konsulko.com>2016-09-09 19:53:14 (GMT)
commitaca9814dc5e213c1a37a5d6bc7221240ad08e9a0 (patch)
treeb8be1c5444c30b05290d52996789f325a867523a /cmd/disk.c
parent645176d1d5c37c91ddb06c366678fbe302550387 (diff)
downloadu-boot-fsl-qoriq-aca9814dc5e213c1a37a5d6bc7221240ad08e9a0.tar.xz
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 92de3af..3d2a3d2 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