commit | 1c7e28246e986a789a55f52ff681bf8d5d1dcada | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Thu Mar 16 11:55:33 2017 +0100 |
committer | Darren Hart (VMware) <dvhart@infradead.org> | Thu Apr 13 10:12:43 2017 -0700 |
tree | 5556692e5a67ed84cadc8d6c9b2b6cb626295b6f | |
parent | 504b02593fc5c24575d7d50d1b388b5ecf9354ee [diff] |
platform/x86: dell-laptop: Refactor kbd_led_triggers_store() Return -EINVAL immediately on invalid input, rather then doing the straight path in an if block and returning -EINVAL at the end of the function. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>