From 81a2205228646a9abf3548c197d415ef9167a1c5 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 10 Jul 2014 15:10:09 +0200 Subject: USB: host: drop force rescan We can now detect changes in the USB device hierarchy properly, so the 'force' option to the usb command is no longer necessary. We just scan the busses each time the usb command is called. Signed-off-by: Sascha Hauer --- commands/usb.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'commands/usb.c') diff --git a/commands/usb.c b/commands/usb.c index c158852ca9..a37d50327f 100644 --- a/commands/usb.c +++ b/commands/usb.c @@ -112,13 +112,10 @@ static void usb_show_devices(bool tree) static int do_usb(int argc, char *argv[]) { int opt; - int force = 0, tree = 0, show = 0; + int tree = 0, show = 0; - while ((opt = getopt(argc, argv, "fts")) > 0) { + while ((opt = getopt(argc, argv, "ts")) > 0) { switch (opt) { - case 'f': - force = 1; - break; case 't': tree = 1; show = 1; @@ -129,7 +126,7 @@ static int do_usb(int argc, char *argv[]) } } - usb_rescan(force); + usb_rescan(); if (show) usb_show_devices(tree); -- cgit v1.2.3