From: Tobias Klauser Date: Wed, 4 Oct 2006 16:12:43 +0000 (+0200) Subject: [ALSA] sound/usb/usbaudio: Handle return value of usb_register() X-Git-Tag: v2.6.20-rc2~86^2~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cf78bbc4b1dca9ce14b665143cf693c35da47eb0;p=linux-2.6-omap-h63xx.git [ALSA] sound/usb/usbaudio: Handle return value of usb_register() Handle the return value of usb_register() in the module_init function. Signed-off-by: Tobias Klauser Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index 67202b9eeb7..3d7f36fb4cf 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c @@ -3577,8 +3577,7 @@ static int __init snd_usb_audio_init(void) printk(KERN_WARNING "invalid nrpacks value.\n"); return -EINVAL; } - usb_register(&usb_audio_driver); - return 0; + return usb_register(&usb_audio_driver); }