Commit 0d17cca3 authored by Daniele Bellucci's avatar Daniele Bellucci Committed by Greg Kroah-Hartman

[PATCH] Another bad audit in drivers/usb/*: usbskeleton

Another minor cleanup:
- if usb_register fails report back its return code rather than -1
parent 66c95e20
...@@ -677,10 +677,10 @@ static int __init usb_skel_init(void) ...@@ -677,10 +677,10 @@ static int __init usb_skel_init(void)
/* register this driver with the USB subsystem */ /* register this driver with the USB subsystem */
result = usb_register(&skel_driver); result = usb_register(&skel_driver);
if (result < 0) { if (result) {
err("usb_register failed. Error number %d", err("usb_register failed. Error number %d",
result); result);
return -1; return result;
} }
info(DRIVER_DESC " " DRIVER_VERSION); info(DRIVER_DESC " " DRIVER_VERSION);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment