From: Dan Carpenter Date: Fri, 21 Nov 2025 13:33:56 +0000 (+0300) Subject: platform/x86: asus-armoury: Fix error code in mini_led_mode_current_value_store() X-Git-Tag: v6.19-rc1~42^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a69fe8f097f7410dc232259129d334518d4e8dc;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/aSBqRHs256Tz7EKr@stanley.mountain Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c index d6aba68515e2d..c23b711043e2b 100644 --- a/drivers/platform/x86/asus-armoury.c +++ b/drivers/platform/x86/asus-armoury.c @@ -409,7 +409,7 @@ static ssize_t mini_led_mode_current_value_store(struct kobject *kobj, } if (mode >= mini_led_mode_map_size) { - return pr_warn("mini-LED mode unrecognized device: %u\n", mode); + pr_warn("mini-LED mode unrecognized device: %u\n", mode); return -ENODEV; }