From: Andy Shevchenko Date: Wed, 31 Aug 2022 14:03:25 +0000 (+0300) Subject: ACPI: platform: Remove redundant print on -ENOMEM X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1d190148cc22495a01668417243121ad0ad5df01;p=linux.git ACPI: platform: Remove redundant print on -ENOMEM We rely on somebody else to print enough information on memory allocation failures. So remove the log in the acpi_create_platform_device() when return -ENOMEM. Signed-off-by: Andy Shevchenko Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index f09903ec950e2..3a4d3d7772aa7 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c @@ -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); }