提交 1d190148 编写于 作者: A Andy Shevchenko 提交者: Rafael J. Wysocki

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 f3bc9ca5
...@@ -119,7 +119,6 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev, ...@@ -119,7 +119,6 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
resources = kcalloc(count, sizeof(struct resource), resources = kcalloc(count, sizeof(struct resource),
GFP_KERNEL); GFP_KERNEL);
if (!resources) { if (!resources) {
dev_err(&adev->dev, "No memory for resources\n");
acpi_dev_free_resource_list(&resource_list); acpi_dev_free_resource_list(&resource_list);
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册