summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-08-16 12:56:53 +0200
committerJaroslav Kysela <perex@suse.cz>2006-09-23 10:41:05 +0200
commit80b556f26b3830ad5bd6ff9f701675ac8afcb263 (patch)
tree8bcd0bc1cd32c9f6fb0e675670625a0d0f4003a3 /sound
parent5e4968e24ced93b7b130e7e1fc947a79f82776bf (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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/emu10k1/emu10k1x.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index bda8bdf5993..da1610a571b 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