]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: button: Eliminate ternary operator from acpi_lid_evaluate_state()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 16:59:06 +0000 (18:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 17:17:49 +0000 (19:17 +0200)
commita2a3659829b1062fa86eeecb7cb575fd3ba0338e
tree097de4e3348e245168d9468ff27f59a505642be2
parentc0e0b84d9e6fd74f9390aa4014dd265947f1c0d7
ACPI: button: Eliminate ternary operator from acpi_lid_evaluate_state()

The ternary operator in acpi_lid_evaluate_state() is not actually needed
because the same result can be achieved by applying the !! operator to
the lid_state value, so update the code accordingly.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3055906.e9J7NaK4W3@rafael.j.wysocki
drivers/acpi/button.c