diff options
author | Heiner Kallweit <[email protected]> | 2016-09-14 20:54:31 +0200 |
---|---|---|
committer | Jacek Anaszewski <[email protected]> | 2016-09-15 16:49:40 +0200 |
commit | 061b5c1d013a94af385ba8980ea3b2617f1ff0f6 (patch) | |
tree | f11437e438094356e0a29069183df9c5bf52b6ac /tools/perf/scripts/python/call-graph-from-postgresql.py | |
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 <[email protected]>
Signed-off-by: Jacek Anaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions