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:
94cd7cd
)
core: remove redundant memset()
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Wed, 4 Jan 2017 16:54:15 +0000
(17:54 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Wed, 4 Jan 2017 16:54:15 +0000
(17:54 +0100)
The request structure is already zeroed by zalloc().
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
core.c
patch
|
blob
|
history
diff --git
a/core.c
b/core.c
index 905f36c62470ec0d5209d43ac3666f012d73f6c0..1994fdd0923ee015b54c085b96b4e3ce3a73dab8 100644
(file)
--- a/
core.c
+++ b/
core.c
@@
-251,8
+251,6
@@
int gpiod_line_request_bulk(struct gpiod_line_bulk *line_bulk,
if (!req)
return -1;
- memset(req, 0, sizeof(*req));
-
if (config->flags & GPIOD_REQUEST_OPEN_DRAIN)
req->flags |= GPIOHANDLE_REQUEST_OPEN_DRAIN;
if (config->flags & GPIOD_REQUEST_OPEN_SOURCE)