projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d61309
)
core: remove an unnecessary else
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Tue, 9 Jan 2018 23:55:53 +0000
(
00:55
+0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Tue, 9 Jan 2018 23:55:53 +0000
(
00:55
+0100)
This else is not useful as all other if (else)'s in this block return.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c
patch
|
blob
|
history
diff --git
a/src/lib/core.c
b/src/lib/core.c
index 1279ec13a7dcf745427c2f99786990cacb2970a4..935e16385cfce72a599b82a2035c407187edc40f 100644
(file)
--- 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)