[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:
Alexey Dobriyan 2006-08-16 12:56:53 +02:00 committed by Jaroslav Kysela
parent 5e4968e24c
commit 80b556f26b

View file

@ -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