[PATCH] emu10k1x: simplify around pci_register_driver()

From: Alexey Dobriyan
Date: Mon Aug 14 2006 - 20:08:18 EST


Report errors to modprobe as side effect.

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

sound/pci/emu10k1/emu10k1x.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

--- 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/