bindings: python: examples: don't store the return value unnecessarily
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 12 Aug 2019 12:18:54 +0000 (14:18 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 12 Aug 2019 12:20:48 +0000 (14:20 +0200)
In gpioset.py: when calling lines.set_values(), there's no point in
storing the return value as it's always None. It's also not used
anywhere.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/python/examples/gpioset.py

index 70fbcc98be4aaaabd85c074afc4ccc7e8c5ad91e..3134b3fc34b8dd5c2d241f21b110dd111ee87f8c 100755 (executable)
@@ -25,4 +25,4 @@ with gpiod.Chip(sys.argv[1]) as chip:
 
     lines = chip.get_lines(offsets)
     lines.request(consumer=sys.argv[0], type=gpiod.LINE_REQ_DIR_OUT)
-    vals = lines.set_values(values)
+    lines.set_values(values)