ACPI: scan: Fold acpi_bus_type_and_status() into its caller
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Apr 2021 14:30:01 +0000 (16:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Apr 2021 17:55:40 +0000 (19:55 +0200)
commite6c1067dc1becf6c00408f59e0efa28b8d206371
tree917518ea4f552e9319c860ddd77cd4c7111a94b4
parente49d033bddf5b565044e2abe4241353959bc9120
ACPI: scan: Fold acpi_bus_type_and_status() into its caller

There is only one caller of acpi_bus_type_and_status() which is
acpi_bus_check_add(), so fold the former into the latter and use
the observation that the initial status of the device is
ACPI_STA_DEFAULT in all cases except for ACPI_BUS_TYPE_PROCESSOR
to simplify the code.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/scan.c