Skip to content
Snippets Groups Projects
Commit 1a448db7 authored by Bryan Wu's avatar Bryan Wu Committed by Remy Bohmer
Browse files

usb_scan_devices: fix output with no devices


We should check the return of usb_new_device() so that if no USB device is
found, we print out the right message rather than always saying "new usb
device found".

Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarRemy Bohmer <linux@bohmer.net>
parent f1c1f540
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment