summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2016-09-07 08:06:10 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-09-10 02:43:00 +0200
commiteacce4b6ce073b69830f5d816282af5317a2e98c (patch)
treeab49ecfdba7a1fed84f6f8f3d17ef4d29af6f1f1
parentACPICA: Cleanup for all string-to-integer conversions (diff)
downloadlinux-eacce4b6ce073b69830f5d816282af5317a2e98c.tar.xz
linux-eacce4b6ce073b69830f5d816282af5317a2e98c.zip
ACPICA: Add a couple of casts to uthex.c
ACPICA commit 2ba5d3fdaa24d66d67694cbae6ec66971a7a67c1 Required in some environments. Link: https://github.com/acpica/acpica/commit/2ba5d3fd Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/acpica/uthex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/uthex.c b/drivers/acpi/acpica/uthex.c
index 3a4ca951d762..36d2fc789088 100644
--- a/drivers/acpi/acpica/uthex.c
+++ b/drivers/acpi/acpica/uthex.c
@@ -92,7 +92,8 @@ acpi_status acpi_ut_ascii_to_hex_byte(char *two_ascii_chars, u8 *return_byte)
/* Both ASCII characters must be valid hex digits */
- if (!isxdigit(two_ascii_chars[0]) || !isxdigit(two_ascii_chars[1])) {
+ if (!isxdigit((int)two_ascii_chars[0]) ||
+ !isxdigit((int)two_ascii_chars[1])) {
return (AE_BAD_HEX_CONSTANT);
}