summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utstrsuppt.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-01 15:26:06 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-04 15:49:34 +0100
commit4b688b1c48dbbc6b1c939899f992985e2b03150c (patch)
tree5e26218b72faa68c429110a05974fd8c43b3f1b4 /drivers/acpi/acpica/utstrsuppt.c
parentfb969d160cac2074f8eeefdc073e4797885839e7 (diff)
downloadlinux-4b688b1c48dbbc6b1c939899f992985e2b03150c.tar.bz2
ACPICA: Rename variable to match upstream
There is a variable name mismatch in acpi_ut_strtoul_multiply64() between the ACPICA code in the kernel and the corresponding upstream code which may be problematic if changes to this particular piece of code are made upstream and ported to Linux, so rename the variable in question to match its name in the upstream code. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utstrsuppt.c')
-rw-r--r--drivers/acpi/acpica/utstrsuppt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/utstrsuppt.c b/drivers/acpi/acpica/utstrsuppt.c
index b2fc371c402e..97f48d71f9e6 100644
--- a/drivers/acpi/acpica/utstrsuppt.c
+++ b/drivers/acpi/acpica/utstrsuppt.c
@@ -370,7 +370,7 @@ acpi_ut_insert_digit(u64 *accumulated_value, u32 base, int ascii_digit)
static acpi_status
acpi_ut_strtoul_multiply64(u64 multiplicand, u32 base, u64 *out_product)
{
- u64 val;
+ u64 product;
u64 quotient;
/* Exit if either operand is zero */
@@ -393,15 +393,15 @@ acpi_ut_strtoul_multiply64(u64 multiplicand, u32 base, u64 *out_product)
return (AE_NUMERIC_OVERFLOW);
}
- val = multiplicand * base;
+ product = multiplicand * base;
/* Check for 32-bit overflow if necessary */
- if ((acpi_gbl_integer_bit_width == 32) && (val > ACPI_UINT32_MAX)) {
+ if ((acpi_gbl_integer_bit_width == 32) && (product > ACPI_UINT32_MAX)) {
return (AE_NUMERIC_OVERFLOW);
}
- *out_product = val;
+ *out_product = product;
return (AE_OK);
}