ChangeSet 1.1276.1.29, 2003/08/27 10:54:39-07:00, bellucda@tiscali.it [PATCH] Audit and minor cleanups in drivers/usb/* - if usb_register fails report back its return code rather than -1 drivers/usb/class/usb-midi.c | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff -Nru a/drivers/usb/class/usb-midi.c b/drivers/usb/class/usb-midi.c --- a/drivers/usb/class/usb-midi.c Tue Sep 2 12:44:51 2003 +++ b/drivers/usb/class/usb-midi.c Tue Sep 2 12:44:51 2003 @@ -2084,16 +2084,12 @@ /* ------------------------------------------------------------------------- */ -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); }