[ALSA] emu10k1x: simplify around pci_register_driver()
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 16 Aug 2006 10:56:53 +0000 (12:56 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:41:05 +0000 (10:41 +0200)
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>
sound/pci/emu10k1/emu10k1x.c

index bda8bdf..da1610a 100644 (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