]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: lenovo: silence unreachable code warning
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 6 Feb 2025 08:20:35 +0000 (11:20 +0300)
committerJiri Kosina <jkosina@suse.com>
Tue, 4 Mar 2025 20:14:36 +0000 (21:14 +0100)
commit608446c238079d6c2390c05026a6670ca5334f01
tree0c00e67e6863974dbf5c14eb71b03626fd15ce7b
parentd6ea85f8371b99c1d3a90ee4e2fb1a648f8d71d3
HID: lenovo: silence unreachable code warning

In theory, this code used to return 0 if CONFIG_ACPI_PLATFORM_PROFILE was
disabled.  It's not clear if that was a config which would actually boot
so we've removed the CONFIG_ACPI_PLATFORM_PROFILE ifdef.  But now the
"return 0;" statement is unreachable and static checker tools complain.

Delete it and pull the else statement in a tab to silence the checker
warning and make the code a bit more clear.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lenovo.c