commit | 061b5c1d013a94af385ba8980ea3b2617f1ff0f6 | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Wed Sep 14 20:54:31 2016 +0200 |
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | Thu Sep 15 16:49:40 2016 +0200 |
tree | f11437e438094356e0a29069183df9c5bf52b6ac | |
parent | 68620e594c250ba8c43a78e77f5296cb9952582e [diff] |
leds: gpio: fix an unhandled error case in create_gpio_led gpiod_get_value_cansleep returns 0, 1, or an error code. So far errors are not handled and treated the same as 1. Change this to bail out if an error code is returned and remove the double negation. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>