]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
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)
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

index d6aba68515e2d699c6f3808b0165ec4ae53f5193..c23b711043e2be19ec9144b41044fd61758a780d 100644 (file)
@@ -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;
        }