From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: "Rafael J. Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>
Subject: [PATCH v1 2/4] ACPI: platform: Remove redundant print on ENOMEM
Date: Mon, 29 Aug 2022 17:10:58 +0300 [thread overview]
Message-ID: <20220829141100.63934-2-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20220829141100.63934-1-andriy.shevchenko@linux.intel.com>
We rely on somebody else to print enough information on failures.
So remove the log in acpi_create_platform_device() when return
-ENOMEM.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/acpi_platform.c | 1 -
1 file changed, 1 deletion(-)
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);
}
--
2.35.1
next prev parent reply other threads:[~2022-08-29 14:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 14:10 [PATCH v1 1/4] ACPI: platform: Get rid of redundant 'else' Andy Shevchenko
2022-08-29 14:10 ` Andy Shevchenko [this message]
2022-08-29 14:10 ` [PATCH v1 3/4] ACPI: platform: Use sizeof(*pointer) instead of sizeof(type) Andy Shevchenko
2022-08-29 14:11 ` [PATCH v1 4/4] ACPI: platform: Keep list of ACPI IDs sorted Andy Shevchenko
2022-08-29 14:28 ` Rafael J. Wysocki
2022-08-29 15:18 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220829141100.63934-2-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox