ACPI: utils: Refine acpi_handle_list_equal() slightly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Dec 2023 20:06:45 +0000 (21:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Dec 2023 09:46:05 +0000 (10:46 +0100)
commit1feb042d4e9b30b3ec3363e557d2ba884485f835
tree14b4fee0dd03d184a5ec9b7832c50e01ef81aabe
parent6909e0f322b0527fee9fdc54685e6cad69008713
ACPI: utils: Refine acpi_handle_list_equal() slightly

It is somewhat better to use the size of the first array element for
computing the size of the entire array than to rely on the array
element data type definition knowledge and the former is also
consistent with the array allocation in acpi_evaluate_reference(),
so modify the code accordingly.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/utils.c