[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1467330612-26242-4-git-send-email-mmayer@broadcom.com>
Date: Thu, 30 Jun 2016 16:50:09 -0700
From: Markus Mayer <mmayer@...adcom.com>
To: Robert Moore <robert.moore@...el.com>,
Lv Zheng <lv.zheng@...el.com>,
Rafael Wysocki <rafael.j.wysocki@...el.com>,
Len Brown <lenb@...nel.org>
Cc: Markus Mayer <mmayer@...adcom.com>, linux-acpi@...r.kernel.org,
devel@...ica.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/6] ACPICA: make use of new strtolower() function
Call strtolower() rather than walking the string explicitly to convert
it to lowercase.
Signed-off-by: Markus Mayer <mmayer@...adcom.com>
---
*** Please note that there don't seem to be any callers of acpi_ut_strlwr().
*** It may be possible to remove the function altogether.
drivers/acpi/acpica/utnonansi.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/acpi/acpica/utnonansi.c b/drivers/acpi/acpica/utnonansi.c
index 3465fe2..b6e11dc 100644
--- a/drivers/acpi/acpica/utnonansi.c
+++ b/drivers/acpi/acpica/utnonansi.c
@@ -64,19 +64,8 @@ ACPI_MODULE_NAME("utnonansi")
******************************************************************************/
void acpi_ut_strlwr(char *src_string)
{
- char *string;
-
ACPI_FUNCTION_ENTRY();
-
- if (!src_string) {
- return;
- }
-
- /* Walk entire string, lowercasing the letters */
-
- for (string = src_string; *string; string++) {
- *string = (char)tolower((int)*string);
- }
+ strtolower(src_string);
}
/*******************************************************************************
--
2.7.4
Powered by blists - more mailing lists