summaryrefslogtreecommitdiffstats
path: root/sound/pci
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/pci
parent5e4968e24ced93b7b130e7e1fc947a79f82776bf (diff)
downloadtalos-op-linux-80b556f26b3830ad5bd6ff9f701675ac8afcb263.tar.gz
talos-op-linux-80b556f26b3830ad5bd6ff9f701675ac8afcb263.zip
[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')
-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 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
OpenPOWER on IntegriCloud