Merge master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6
[firefly-linux-kernel-4.4.55.git] / drivers / dma / ioatdma.c
index 0fdf7fbd6495833b573d97275648213de0103e60..2801d14a5e42e0c193cd143397124a209970d951 100644 (file)
@@ -824,10 +824,9 @@ static int __init ioat_init_module(void)
 {
        /* it's currently unsafe to unload this module */
        /* if forced, worst case is that rmmod hangs */
-       if (THIS_MODULE != NULL)
-               THIS_MODULE->unsafe = 1;
+       __unsafe(THIS_MODULE);
 
-       return pci_module_init(&ioat_pci_drv);
+       pci_module_init(&ioat_pci_drv);
 }
 
 module_init(ioat_init_module);