]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: button: Eliminate redundant conditional statement
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 17:00:47 +0000 (19:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 17:17:49 +0000 (19:17 +0200)
commitd9fa7b95d11d7cdf2930ebac155f7ee8f2d6ebdd
tree2341d45d5657b806636ca5e673d207aed26b14cf
parent06bc0064ad53be6b8f13b166b2fccbebe9eb6735
ACPI: button: Eliminate redundant conditional statement

Simplify do_update initialization in acpi_lid_notify_state() by
assigning the value of the condition it depends on directly to it.

No intentional functional impact.

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