diff options
author | 2020-11-13 10:25:10 +0800 | |
---|---|---|
committer | 2020-11-17 18:12:34 +0100 | |
commit | dff714087c40644d225094a1f75d2272cc8a4885 (patch) | |
tree | f511e564e18b5dda091608a7725dc9d6c516efea /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ACPI: debug: Remove the not used function (diff) | |
download | wireguard-linux-dff714087c40644d225094a1f75d2272cc8a4885.tar.xz wireguard-linux-dff714087c40644d225094a1f75d2272cc8a4885.zip |
ACPI: SBS: Simplify the driver init code
acpi_bus_register_driver() will check acpi_disable and return
-ENODEV, so the acpi_disable check outside the
acpi_bus_register_driver() is duplicated, can be removed.
Also we can just return from acpi_bus_register_driver() then
we can simplify the code further.
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions