Commit 80b556f2 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Jaroslav Kysela

[ALSA] emu10k1x: simplify around pci_register_driver()

Report errors to modprobe as side effect.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 5e4968e2
...@@ -1626,12 +1626,7 @@ static struct pci_driver driver = { ...@@ -1626,12 +1626,7 @@ static struct pci_driver driver = {
// initialization of the module // initialization of the module
static int __init alsa_card_emu10k1x_init(void) static int __init alsa_card_emu10k1x_init(void)
{ {
int err; return pci_register_driver(&driver);
if ((err = pci_register_driver(&driver)) > 0)
return err;
return 0;
} }
// clean up the module // clean up the module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment