From: linux@treblig.org
To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org
Cc: linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev,
linux-kernel@vger.kernel.org,
"Dr. David Alan Gilbert" <linux@treblig.org>
Subject: [PATCH] ACPCIA: Remove unused acpi_ut_check_and_repair_ascii
Date: Sat, 14 Sep 2024 15:00:34 +0100 [thread overview]
Message-ID: <20240914140034.29172-1-linux@treblig.org> (raw)
From: "Dr. David Alan Gilbert" <linux@treblig.org>
'acpi_ut_check_and_repair_ascii' is unused, remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/acpi/acpica/acutils.h | 2 --
drivers/acpi/acpica/utascii.c | 30 ------------------------------
2 files changed, 32 deletions(-)
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h
index edfdbbef81c1..9f0830a63c10 100644
--- a/drivers/acpi/acpica/acutils.h
+++ b/drivers/acpi/acpica/acutils.h
@@ -158,8 +158,6 @@ u8 acpi_ut_valid_nameseg(char *signature);
u8 acpi_ut_valid_name_char(char character, u32 position);
-void acpi_ut_check_and_repair_ascii(u8 *name, char *repaired_name, u32 count);
-
/*
* utcksum - Checksum utilities
*/
diff --git a/drivers/acpi/acpica/utascii.c b/drivers/acpi/acpica/utascii.c
index 2be37676edd7..0f03745934d6 100644
--- a/drivers/acpi/acpica/utascii.c
+++ b/drivers/acpi/acpica/utascii.c
@@ -74,33 +74,3 @@ u8 acpi_ut_valid_name_char(char character, u32 position)
return (TRUE);
}
-
-/*******************************************************************************
- *
- * FUNCTION: acpi_ut_check_and_repair_ascii
- *
- * PARAMETERS: name - Ascii string
- * count - Number of characters to check
- *
- * RETURN: None
- *
- * DESCRIPTION: Ensure that the requested number of characters are printable
- * Ascii characters. Sets non-printable and null chars to <space>.
- *
- ******************************************************************************/
-
-void acpi_ut_check_and_repair_ascii(u8 *name, char *repaired_name, u32 count)
-{
- u32 i;
-
- for (i = 0; i < count; i++) {
- repaired_name[i] = (char)name[i];
-
- if (!name[i]) {
- return;
- }
- if (!isprint(name[i])) {
- repaired_name[i] = ' ';
- }
- }
-}
--
2.46.0
reply other threads:[~2024-09-14 14:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240914140034.29172-1-linux@treblig.org \
--to=linux@treblig.org \
--cc=acpica-devel@lists.linux.dev \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=robert.moore@intel.com \
/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