Fix two typos and remove redundant code.

MFC after: 1 month.
This commit is contained in:
Michael Tuexen 2011-06-16 17:30:50 +00:00
parent 27a8904bf1
commit c67a03f99a

View File

@ -1035,8 +1035,8 @@ sctp_sendv(int sd,
if ((addrcnt < 0) ||
(iovcnt < 0) ||
((addr == NULL) && (addrcnt > 0)) ||
((addr != NULL) && (addrcnt == 0)) ||
((addrs == NULL) && (addrcnt > 0)) ||
((addrs != NULL) && (addrcnt == 0)) ||
((iov == NULL) && (iovcnt > 0)) ||
((iov != NULL) && (iovcnt == 0))) {
errno = EINVAL;
@ -1207,9 +1207,6 @@ sctp_sendv(int sd,
if (msg.msg_controllen == 0) {
msg.msg_control = NULL;
}
if (msg.msg_controllen == 0) {
msg.msg_control = NULL;
}
msg.msg_iov = (struct iovec *)iov;
msg.msg_iovlen = iovcnt;
msg.msg_flags = 0;