summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utstrtoul64.c
diff options
context:
space:
mode:
authorErik Schmauss <erik.schmauss@intel.com>2018-08-10 14:42:57 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-08-14 23:49:13 +0200
commit089b2bec97bbddb519e849a58b1ba8cc9880a4e5 (patch)
tree2f8cb134358d9026463769373a70884f561ecbd5 /drivers/acpi/acpica/utstrtoul64.c
parent8a55c696d327008b003957d828ff04b81ead5dd1 (diff)
downloadblackbird-op-linux-089b2bec97bbddb519e849a58b1ba8cc9880a4e5.tar.gz
blackbird-op-linux-089b2bec97bbddb519e849a58b1ba8cc9880a4e5.zip
ACPICA: Utilities: split hex detection into smaller functions
acpi_ut_implicit_strtoul64() called acpi_ut_detect_hex_prefix() and ignored the return value. Instead, use acpi_ut_remove_hex_prefix(). Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utstrtoul64.c')
-rw-r--r--drivers/acpi/acpica/utstrtoul64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/utstrtoul64.c b/drivers/acpi/acpica/utstrtoul64.c
index 8fadad242db6..5fde619a8bbd 100644
--- a/drivers/acpi/acpica/utstrtoul64.c
+++ b/drivers/acpi/acpica/utstrtoul64.c
@@ -218,7 +218,7 @@ u64 acpi_ut_implicit_strtoul64(char *string)
* implicit conversions, and the "0x" prefix is "not allowed".
* However, allow a "0x" prefix as an ACPI extension.
*/
- acpi_ut_detect_hex_prefix(&string);
+ acpi_ut_remove_hex_prefix(&string);
if (!acpi_ut_remove_leading_zeros(&string)) {
return_VALUE(0);
OpenPOWER on IntegriCloud