diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-24 23:38:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-05-07 14:39:44 +0200 |
commit | 0d9d333672167f7c4586c1708eee53066ce8f55d (patch) | |
tree | 9e67d25640291b4cc5da7015323270963d0f51aa /src/basic | |
parent | a258f4915a2674d77e656755e5a4fa23059f778a (diff) | |
download | systemd-0d9d333672167f7c4586c1708eee53066ce8f55d.tar.gz |
tree-wide: remove redundant assignments
We already initialize the fields a few lines up to the very same values,
hence remove this.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/socket-util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index b502a62a24..a23dd6cbed 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -850,8 +850,6 @@ ssize_t send_one_fd_iov_sa( cmsg->cmsg_type = SCM_RIGHTS; cmsg->cmsg_len = CMSG_LEN(sizeof(int)); memcpy(CMSG_DATA(cmsg), &fd, sizeof(int)); - - mh.msg_controllen = CMSG_SPACE(sizeof(int)); } k = sendmsg(transport_fd, &mh, MSG_NOSIGNAL | flags); if (k < 0) |