forked from Minki/linux
[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:
parent
082d6c673c
commit
cf78bbc4b1
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user