Messages in this thread Patch in this message | | | Date | Tue, 15 Aug 2006 04:10:45 +0400 | From | Alexey Dobriyan <> | Subject | [PATCH] emu10k1x: simplify around pci_register_driver() |
| |
Report errors to modprobe as side effect.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> ---
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |