platform/x86: dell-laptop: Refactor kbd_led_triggers_store()
authorHans de Goede <hdegoede@redhat.com>
Thu, 16 Mar 2017 10:55:33 +0000 (11:55 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:12:43 +0000 (10:12 -0700)
commit1c7e28246e986a789a55f52ff681bf8d5d1dcada
tree5556692e5a67ed84cadc8d6c9b2b6cb626295b6f
parent504b02593fc5c24575d7d50d1b388b5ecf9354ee
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>
drivers/platform/x86/dell-laptop.c