Commit f97605c6 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 9e1f15f6
......@@ -2084,16 +2084,12 @@ static struct usb_driver usb_midi_driver = {
/* ------------------------------------------------------------------------- */
int __init usb_midi_init(void)
static int __init usb_midi_init(void)
{
if ( usb_register(&usb_midi_driver) < 0 )
return -1;
return 0;
return usb_register(&usb_midi_driver);
}
void __exit usb_midi_exit(void)
static void __exit usb_midi_exit(void)
{
usb_deregister(&usb_midi_driver);
}
......
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