Merge tag 'staging-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[linux-2.6-microblaze.git] / drivers / crypto / nx / nx-842-pseries.c
index bf52cd1..6686997 100644 (file)
@@ -1105,10 +1105,9 @@ static int __init nx842_pseries_init(void)
 
        RCU_INIT_POINTER(devdata, NULL);
        new_devdata = kzalloc(sizeof(*new_devdata), GFP_KERNEL);
-       if (!new_devdata) {
-               pr_err("Could not allocate memory for device data\n");
+       if (!new_devdata)
                return -ENOMEM;
-       }
+
        RCU_INIT_POINTER(devdata, new_devdata);
 
        ret = vio_register_driver(&nx842_vio_driver);