diff mbox series

[v2,2/4] ACPI: platform: Remove redundant print on -ENOMEM

Message ID 20220831140327.79149-2-andriy.shevchenko@linux.intel.com
State Accepted
Commit 1d190148cc22495a01668417243121ad0ad5df01
Headers show
Series [v2,1/4] ACPI: platform: Get rid of redundant 'else' | expand

Commit Message

Andy Shevchenko Aug. 31, 2022, 2:03 p.m. UTC
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>
---
v2: slightly modified commit message to be prettier
 drivers/acpi/acpi_platform.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c
index 75e26528056d..042f80588c18 100644
--- a/drivers/acpi/acpi_platform.c
+++ b/drivers/acpi/acpi_platform.c
@@ -120,7 +120,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);
 		}