Commit 8bf77d4c 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 9652479d
......@@ -6115,13 +6115,16 @@ ov511_deregister_decomp_module(int ov518, int mmx)
static int __init
usb_ov511_init(void)
{
int retval;
if (usb_register(&ov511_driver) < 0)
return -1;
retval = usb_register(&ov511_driver);
if (retval)
goto out;
info(DRIVER_VERSION " : " DRIVER_DESC);
return 0;
out:
return retval;
}
static void __exit
......
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