From acd253412614264239e4848ecf313b6c074873ae Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 2 Jan 2017 15:50:28 +0100 Subject: [PATCH] gpioset: drop the call to gpiod_line_set_value() This is not needed as we already pass the default value to gpiod_line_request_dout(); Signed-off-by: Bartosz Golaszewski --- gpioset.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gpioset.c b/gpioset.c index 3870cf3..58d5f0b 100644 --- a/gpioset.c +++ b/gpioset.c @@ -76,14 +76,6 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - status = gpiod_line_set_value(line, value); - if (status < 0) { - fprintf(stderr, - "%s: error setting GPIO value: %s\n", - argv[0], gpiod_strerror(gpiod_errno())); - return EXIT_FAILURE; - } - getchar(); gpiod_chip_close(chip); -- 2.30.2