mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-15 01:44:52 +00:00
[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");
|
printk(KERN_WARNING "invalid nrpacks value.\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
usb_register(&usb_audio_driver);
|
return usb_register(&usb_audio_driver);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user