mfd: htc-i2cpld: Delete error message for a failed memory allocation
[linux-2.6-microblaze.git] / drivers / mfd / htc-i2cpld.c
index 3f9eee5..4bf8b77 100644 (file)
@@ -479,10 +479,8 @@ static int htcpld_setup_chips(struct platform_device *pdev)
        htcpld->nchips = pdata->num_chip;
        htcpld->chip = devm_kzalloc(dev, sizeof(struct htcpld_chip) * htcpld->nchips,
                                    GFP_KERNEL);
-       if (!htcpld->chip) {
-               dev_warn(dev, "Unable to allocate memory for chips\n");
+       if (!htcpld->chip)
                return -ENOMEM;
-       }
 
        /* Add the chips as best we can */
        for (i = 0; i < htcpld->nchips; i++) {