summaryrefslogtreecommitdiffstats
path: root/commands/detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/detect.c')
-rw-r--r--commands/detect.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/detect.c b/commands/detect.c
index d68d738453..48bab4d020 100644
--- a/commands/detect.c
+++ b/commands/detect.c
@@ -54,9 +54,7 @@ static int do_detect(int argc, char *argv[])
}
if (option_all) {
- for_each_device(dev)
- device_detect(dev);
-
+ device_detect_all();
return 0;
}