aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_platform.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-08-31 17:03:25 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-09-03 20:53:17 +0200
commit1d190148cc22495a01668417243121ad0ad5df01 (patch)
tree2429a14e82ed3c8a2b20ec511d6937765bb00a47 /drivers/acpi/acpi_platform.c
parentACPI: platform: Get rid of redundant 'else' (diff)
downloadlinux-dev-1d190148cc22495a01668417243121ad0ad5df01.tar.xz
linux-dev-1d190148cc22495a01668417243121ad0ad5df01.zip
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_platform.c')
-rw-r--r--drivers/acpi/acpi_platform.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c
index f09903ec950e..3a4d3d7772aa 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);
}