From ef5b79ce693193037a734982e1f256da67ebe9cb Mon Sep 17 00:00:00 2001 From: Ye Li Date: Thu, 14 Jun 2018 01:46:35 -0700 Subject: MLK-18614-1 cmd: fastboot: Fix build warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit ea5057f74288407dfce2de3a7130f607e7006344) --- cmd/fastboot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/fastboot.c b/cmd/fastboot.c index be4a11f9b7..3fd79864cf 100644 --- a/cmd/fastboot.c +++ b/cmd/fastboot.c @@ -23,10 +23,9 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) return CMD_RET_USAGE; usb_controller = argv[1]; + controller_index = simple_strtoul(usb_controller, NULL, 0); #ifdef CONFIG_FASTBOOT_USB_DEV controller_index = CONFIG_FASTBOOT_USB_DEV; -#else - controller_index = simple_strtoul(usb_controller, NULL, 0); #endif ret = board_usb_init(controller_index, USB_INIT_DEVICE); -- cgit v1.2.3