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 /sound/pci/emu10k1 | |
parent | 5e4968e24ced93b7b130e7e1fc947a79f82776bf (diff) | |
download | op-kernel-dev-80b556f26b3830ad5bd6ff9f701675ac8afcb263.zip op-kernel-dev-80b556f26b3830ad5bd6ff9f701675ac8afcb263.tar.gz |
[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>
Diffstat (limited to 'sound/pci/emu10k1')
-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 bda8bdf..da1610a 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 |