aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/usbaudio.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-10-04 12:12:43 -0400
committerJaroslav Kysela <perex@server.perex.cz>2006-12-20 02:55:31 -0500
commitcf78bbc4b1dca9ce14b665143cf693c35da47eb0 (patch)
tree6d293daa4cfe7e71645ac3299125534465670287 /sound/usb/usbaudio.c
parent082d6c673cae6565d874cd9f64ab304edaa8ef66 (diff)
[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 <tklauser@distanz.ch> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r--sound/usb/usbaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 67202b9eeb77..3d7f36fb4cf0 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -3577,8 +3577,7 @@ static int __init snd_usb_audio_init(void)
3577 printk(KERN_WARNING "invalid nrpacks value.\n"); 3577 printk(KERN_WARNING "invalid nrpacks value.\n");
3578 return -EINVAL; 3578 return -EINVAL;
3579 } 3579 }
3580 usb_register(&usb_audio_driver); 3580 return usb_register(&usb_audio_driver);
3581 return 0;
3582} 3581}
3583 3582
3584 3583