aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorBin Meng2017-09-10 05:12:53 -0700
committerTom Rini2017-09-10 12:27:43 -0400
commit584f316f115df52fd09a6cf699b29dcf824b4da5 (patch)
treeaa6b1a8c5a7cc2a6028d27da4f7120c9ceac44d2 /cmd
parent1f4adab8733b29f81d21f74e2194bd8ddb80e574 (diff)
cmd: ide: Make the first device the default one
At present the IDE device number is initialized to -1, which means we cannot type "ide read" command before setting the device number via "ide device #". For convenience, let's set the first device as the default one. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ide.c b/cmd/ide.c
index e3c32420cfe..bdb598050c1 100644
--- a/cmd/ide.c
+++ b/cmd/ide.c
@@ -30,7 +30,7 @@
#endif
/* Current I/O Device */
-static int curr_device = -1;
+static int curr_device;
int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{