[PATCH] ACPCIA: Remove unused acpi_ut_check_and_repair_ascii

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Dr. David Alan Gilbert" <linux@xxxxxxxxxxx>

'acpi_ut_check_and_repair_ascii' is unused, remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@xxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux