MLK-18614-1 cmd: fastboot: Fix build warning
Fix build warning below: cmd/fastboot.c: In function ‘do_fastboot’: cmd/fastboot.c:19:8: warning: variable ‘usb_controller’ set but not used [-Wunused-but-set-variable] char *usb_controller; Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit ea5057f74288407dfce2de3a7130f607e7006344)
This commit is contained in:
parent
295edb383c
commit
ef5b79ce69
|
|
@ -23,10 +23,9 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
|
|
||||||
usb_controller = argv[1];
|
usb_controller = argv[1];
|
||||||
|
controller_index = simple_strtoul(usb_controller, NULL, 0);
|
||||||
#ifdef CONFIG_FASTBOOT_USB_DEV
|
#ifdef CONFIG_FASTBOOT_USB_DEV
|
||||||
controller_index = CONFIG_FASTBOOT_USB_DEV;
|
controller_index = CONFIG_FASTBOOT_USB_DEV;
|
||||||
#else
|
|
||||||
controller_index = simple_strtoul(usb_controller, NULL, 0);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = board_usb_init(controller_index, USB_INIT_DEVICE);
|
ret = board_usb_init(controller_index, USB_INIT_DEVICE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue