]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: button: Change return type of two functions to void
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 17:00:00 +0000 (19:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 17:17:49 +0000 (19:17 +0200)
commit06bc0064ad53be6b8f13b166b2fccbebe9eb6735
treea27ebe356eb23937a81bc90e3a3c9f987f33e2ed
parenta2a3659829b1062fa86eeecb7cb575fd3ba0338e
ACPI: button: Change return type of two functions to void

The return value of acpi_lid_notify_state() is always 0, so change
its return type to void.

Moreover, the return value of the only caller of that function,
acpi_lid_update_state(), is never used, so change its return type
to void either.

No intentional functional impact.

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