Skip to content

Commit

Permalink
[ALSA] emu10k1x: simplify around pci_register_driver()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 5e4968e commit 80b556f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sound/pci/emu10k1/emu10k1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80b556f

Please sign in to comment.