[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>
This commit is contained in:
Tobias Klauser 2006-10-04 18:12:43 +02:00 committed by Jaroslav Kysela
parent 082d6c673c
commit cf78bbc4b1
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}