ACPI: platform: Remove redundant print on -ENOMEM
[sfrench/cifs-2.6.git] / drivers / acpi / acpi_platform.c
index f09903ec950e2e7935a47abf2e9d197dad6a2def..3a4d3d7772aa734d5b1b9dd95967116d40fa57f6 100644 (file)
@@ -119,7 +119,6 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
                resources = kcalloc(count, sizeof(struct resource),
                                    GFP_KERNEL);
                if (!resources) {
-                       dev_err(&adev->dev, "No memory for resources\n");
                        acpi_dev_free_resource_list(&resource_list);
                        return ERR_PTR(-ENOMEM);
                }