[IOAT]: Fix a warning in ioatdma
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 4 Jul 2006 02:28:13 +0000 (19:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jul 2006 02:28:13 +0000 (19:28 -0700)
drivers/dma/ioatdma.c: In function 'ioat_init_module':
drivers/dma/ioatdma.c:830: warning: control reaches end of non-void function

Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/dma/ioatdma.c

index ecad8f65d2d416faf2f66d38bafe8220230d24a6..d4810696e8cb9160326c19633cbe27e1c8342c76 100644 (file)
@@ -826,7 +826,7 @@ static int __init ioat_init_module(void)
        /* if forced, worst case is that rmmod hangs */
        __unsafe(THIS_MODULE);
 
-       pci_module_init(&ioat_pci_drv);
+       return pci_module_init(&ioat_pci_drv);
 }
 
 module_init(ioat_init_module);