mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
[ALSA] emu10k1x: simplify around pci_register_driver()
Report errors to modprobe as side effect. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
5e4968e24c
commit
80b556f26b
@ -1626,12 +1626,7 @@ static struct pci_driver driver = {
|
||||
// initialization of the module
|
||||
static int __init alsa_card_emu10k1x_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
if ((err = pci_register_driver(&driver)) > 0)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return pci_register_driver(&driver);
|
||||
}
|
||||
|
||||
// clean up the module
|
||||
|
Loading…
Reference in New Issue
Block a user