diff options
author | 2021-10-13 18:12:31 +0200 | |
---|---|---|
committer | 2021-10-19 16:55:53 +0200 | |
commit | 7c7ba5de7f534c4b563b4add4d430b2186f7ed17 (patch) | |
tree | ea0b087a684b688c53f2da799459554db6e8b663 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | surface: surface3-wmi: Use ACPI_COMPANION() directly (diff) | |
download | wireguard-linux-7c7ba5de7f534c4b563b4add4d430b2186f7ed17.tar.xz wireguard-linux-7c7ba5de7f534c4b563b4add4d430b2186f7ed17.zip |
surface: surface3_power: Drop redundant acpi_bus_get_device() call
If the ACPI companion of a given device is not present, the result
of the ACPI_HANDLE() evaluation for it will be NULL, so calling
acpi_bus_get_device() on ACPI_HANDLE() result in order to validate
it is redundant.
Drop the redundant acpi_bus_get_device() call from mshw0011_notify()
along with a local variable related to it.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/3160001.aeNJFYEL58@kreacher
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions