mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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:
parent
7ec374c6b8
commit
0a69fe8f09
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user