]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: asus-armoury: Fix error code in mini_led_mode_current_value_store()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 21 Nov 2025 13:33:56 +0000 (16:33 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 21 Nov 2025 15:24:05 +0000 (17:24 +0200)
commit0a69fe8f097f7410dc232259129d334518d4e8dc
tree9dcfdb0ae3058914f0be292bde386cad32cb89f5
parent7ec374c6b8597dd23d8c2de1e4045452348cf9cd
platform/x86: asus-armoury: Fix error code in mini_led_mode_current_value_store()

There are two return statements in a row here.  The first one is wrong
so delete that one.  This changes the return value to -ENODEV.

Fixes: f99eb098090e ("platform/x86: asus-armoury: move existing tunings to asus-armoury module")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aSBqRHs256Tz7EKr@stanley.mountain
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-armoury.c