diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-08-16 12:56:53 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 10:41:05 +0200 |
commit | 80b556f26b3830ad5bd6ff9f701675ac8afcb263 (patch) | |
tree | 8bcd0bc1cd32c9f6fb0e675670625a0d0f4003a3 | |
parent | 5e4968e24ced93b7b130e7e1fc947a79f82776bf (diff) |
[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>
-rw-r--r-- | sound/pci/emu10k1/emu10k1x.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index bda8bdf59935..da1610a571b8 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c @@ -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 |