summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-24 23:38:47 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-07 14:39:44 +0200
commit0d9d333672167f7c4586c1708eee53066ce8f55d (patch)
tree9e67d25640291b4cc5da7015323270963d0f51aa /src/basic/socket-util.c
parenta258f4915a2674d77e656755e5a4fa23059f778a (diff)
downloadsystemd-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/socket-util.c')
-rw-r--r--src/basic/socket-util.c2
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)