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

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

- if usb_register fails report back its return code rather than -1
parent 68c6a003
......@@ -653,11 +653,14 @@ MODULE_LICENSE("GPL");
static int __init uss720_init(void)
{
if (usb_register(&uss720_driver) < 0)
return -1;
int retval;
retval = usb_register(&uss720_driver);
if (retval)
goto out;
info(DRIVER_VERSION ":" DRIVER_DESC);
return 0;
out:
return retval;
}
static void __exit uss720_cleanup(void)
......
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