Skip to content

Commit 0a69fe8

Browse files
Dan Carpenterij-intel
authored andcommitted
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: f99eb09 ("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>
1 parent 7ec374c commit 0a69fe8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/platform/x86/asus-armoury.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static ssize_t mini_led_mode_current_value_store(struct kobject *kobj,
409409
}
410410

411411
if (mode >= mini_led_mode_map_size) {
412-
return pr_warn("mini-LED mode unrecognized device: %u\n", mode);
412+
pr_warn("mini-LED mode unrecognized device: %u\n", mode);
413413
return -ENODEV;
414414
}
415415

0 commit comments

Comments
 (0)