Skip to content

Commit 584f316

Browse files
lbmengtrini
authored andcommitted
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
1 parent 1f4adab commit 584f316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ide.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif
3131

3232
/* Current I/O Device */
33-
static int curr_device = -1;
33+
static int curr_device;
3434

3535
int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
3636
{

0 commit comments

Comments
 (0)