ACPI: SBS: Simplify the driver init code
authorHanjun Guo <guohanjun@huawei.com>
Fri, 13 Nov 2020 02:25:10 +0000 (10:25 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Nov 2020 17:12:34 +0000 (18:12 +0100)
commitdff714087c40644d225094a1f75d2272cc8a4885
treef511e564e18b5dda091608a7725dc9d6c516efea
parentab5369bba5189f44538bef07943f323992fe964e
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>
drivers/acpi/sbs.c