diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-12-08 21:05:19 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-12-15 10:46:04 +0100 |
commit | 87824da27b0aee399600d313667c1d812c2749d8 (patch) | |
tree | b4e7a14ea89d875c773bc3ccdfb362e05f45452e /drivers/acpi/scan.c | |
parent | 3814876467e7557ccb1eecc28cf7f68d029f445e (diff) |
ACPI: utils: Rearrange in acpi_evaluate_reference()
The code in acpi_evaluate_reference() can be improved in some ways
without changing its observable behavior. Among other things:
* None of the local variables in that function except for buffer
needs to be initialized.
* The element local variable is only used in the for () loop block,
so it can be defined there.
* Multiple checks can be combined.
* Code duplication related to error handling can be eliminated.
* Redundant inner parens can be dropped.
Modify the function as per the above.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
0 files changed, 0 insertions, 0 deletions