]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: scan: Rearrange checks in acpi_bus_check_add()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Apr 2021 14:30:56 +0000 (16:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Apr 2021 17:55:40 +0000 (19:55 +0200)
commitfca049ff3b69badc24d42e9ac0aa2dd897a5627e
tree34c26481a7149c77ea9eec8ca68b971b63f0e6aa
parent9f493846c3f011946de53e7ccfcce43d43b0aba5
ACPI: scan: Rearrange checks in acpi_bus_check_add()

Rearrange the checks in acpi_bus_check_add() to avoid checking
the "type" twice and take "check_dep" into account only for
ACPI_TYPE_DEVICE objects.

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