From: Bin Meng Date: Sun, 10 Sep 2017 12:12:53 +0000 (-0700) Subject: cmd: ide: Make the first device the default one X-Git-Tag: v2017.09~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=584f316f115df52fd09a6cf699b29dcf824b4da5;p=oweals%2Fu-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/cmd/ide.c b/cmd/ide.c index e3c32420cf..bdb598050c 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[]) {