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: f99eb09809 ("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>
This commit is contained in:
Dan Carpenter 2025-11-21 16:33:56 +03:00 committed by Ilpo Järvinen
parent 7ec374c6b8
commit 0a69fe8f09
No known key found for this signature in database
GPG Key ID: 59AC4F6153E5CE31

View 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;
}