Commit dca06da9 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 60df6f76
......@@ -216,9 +216,13 @@ static struct usb_driver kbtab_driver = {
static int __init kbtab_init(void)
{
usb_register(&kbtab_driver);
int retval;
retval = usb_register(&kbtab_driver);
if (retval)
goto out;
info(DRIVER_VERSION ":" DRIVER_DESC);
return 0;
out:
return retval;
}
static void __exit kbtab_exit(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