ACPI: scan: Drop sta argument from acpi_add_single_object()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Apr 2021 14:31:54 +0000 (16:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Apr 2021 17:55:40 +0000 (19:55 +0200)
commitf926e94338158a5f84cbe4b0c7a9438c303762f8
tree3ee677e10b0d6cbe6058c09a22701a030ae4dcfb
parent02056a4f9209b7e9f65fab193069cbff36ec92b5
ACPI: scan: Drop sta argument from acpi_add_single_object()

Move the initial status check for ACPI_BUS_TYPE_PROCESSOR objects
into acpi_add_single_object() so it is not necessary to pass the
"sta" argument to it, get rid of that argument from there and update
the callers of that function accordingly.

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