summaryrefslogtreecommitdiffstats
path: root/virt/kvm/vfio.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-05-05 20:52:57 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-05-12 16:52:32 +0200
commitb7fbf4cebd7c693d30e258f2ce27a362848634ae (patch)
tree7a7ffe02673d760dbaed79e8236a99c02e052a57 /virt/kvm/vfio.h
parentc5eb0a61238dd6faf37f58c9ce61c9980aaffd7a (diff)
downloadlinux-stable-b7fbf4cebd7c693d30e258f2ce27a362848634ae.tar.gz
linux-stable-b7fbf4cebd7c693d30e258f2ce27a362848634ae.tar.bz2
linux-stable-b7fbf4cebd7c693d30e258f2ce27a362848634ae.zip
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>
Diffstat (limited to 'virt/kvm/vfio.h')
0 files changed, 0 insertions, 0 deletions