Skip to content

Commit 1d19014

Browse files
andy-shevrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f3bc9ca commit 1d19014

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/acpi/acpi_platform.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
119119
resources = kcalloc(count, sizeof(struct resource),
120120
GFP_KERNEL);
121121
if (!resources) {
122-
dev_err(&adev->dev, "No memory for resources\n");
123122
acpi_dev_free_resource_list(&resource_list);
124123
return ERR_PTR(-ENOMEM);
125124
}

0 commit comments

Comments
 (0)