[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
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue