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

[PATCH] Audit and minor cleanups in drivers/usb/*

Changes
- if usb_register fails report back its return code rather than -1
parent 2efc9301
......@@ -530,12 +530,15 @@ static struct usb_driver rio_driver = {
static int __init usb_rio_init(void)
{
if (usb_register(&rio_driver) < 0)
return -1;
int retval;
retval = usb_register(&rio_driver);
if (retval)
goto out;
info(DRIVER_VERSION ":" DRIVER_DESC);
return 0;
out:
return retval;
}
......
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