Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
        cpu_type = platform_get_device_id(pdev)->driver_data;
 
        info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
-       if (!info) {
-               dev_err(dev, "failed to allocate memory for device data\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        info->irq = platform_get_irq(pdev, 0);