Rafael J. Wysocki b7fbf4cebd ACPI: glue: Rearrange find_child_checks()
Notice that it is not necessary to evaluate _STA in find_child_checks()
if the device is expected to have children, but there are none, so
move the children check to the front of the function.

Also notice that FIND_CHILD_MIN_SCORE can be returned right away if
_STA is missing, so make the function do so.

Finally, replace the ternary operator in the return statement argument
with an if () and a standalone return which is somewhat easier to
follow.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-05-12 16:52:32 +02:00
..
2022-01-17 19:45:38 +01:00
2022-01-12 15:57:59 -08:00
2022-03-25 12:14:39 -07:00
2022-01-12 19:40:31 +01:00
2021-06-23 19:27:50 +02:00
2020-11-09 19:25:20 +01:00
2019-11-13 11:12:08 +01:00
2022-01-22 08:33:37 +02:00
2021-06-07 15:36:46 +02:00
2020-11-09 19:08:06 +01:00
2022-03-21 14:26:28 -07:00
2021-06-25 15:02:43 +02:00
2020-11-09 19:08:06 +01:00