Commit d2ca9e79 authored by Mark Andrews's avatar Mark Andrews

Merge branch '877-clang-scan-build-redundant-assignments-detected-2' into 'master'

Cleanup no longer necessary assignments post refactoring in socket.c

See merge request !1526
parents 26c0eaf6 f87b88e5
Pipeline #10149 passed with stages
in 16 minutes and 29 seconds
......@@ -1219,9 +1219,6 @@ build_msghdr_send(isc__socket_t *sock, char* cmsgbuf, isc_socketevent_t *dev,
msg->msg_namelen = 0;
}
write_count = 0;
iovcount = 0;
write_count = dev->region.length - dev->n;
iov[0].iov_base = (void *)(dev->region.base + dev->n);
iov[0].iov_len = write_count;
......@@ -1387,8 +1384,6 @@ build_msghdr_recv(isc__socket_t *sock, char *cmsgbuf, isc_socketevent_t *dev,
dev->address = sock->peer_address;
}
read_count = 0;
read_count = dev->region.length - dev->n;
iov[0].iov_base = (void *)(dev->region.base + dev->n);
iov[0].iov_len = read_count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment