From 23d3906810ef34c9429b0d58a5a500a1e9d6a022 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 10 Jan 2018 00:55:53 +0100 Subject: [PATCH] core: remove an unnecessary else This else is not useful as all other if (else)'s in this block return. Signed-off-by: Bartosz Golaszewski --- src/lib/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/core.c b/src/lib/core.c index 1279ec1..935e163 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -492,10 +492,10 @@ int gpiod_line_request_bulk(struct gpiod_line_bulk *bulk, return line_request_values(bulk, config, default_vals); } else if (line_request_is_events(config->request_type)) { return line_request_events(bulk, config); - } else { - errno = EINVAL; - return -1; } + + errno = EINVAL; + return -1; } void gpiod_line_release(struct gpiod_line *line) -- 2.30.2