Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afd7614c authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

sctp: sctp_sendmsg: Don't test known non-null sinfo



It's already known non-null above.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 517aa0bc
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1791,13 +1791,11 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
		goto out_free;
	}

	if (sinfo) {
	/* Check for invalid stream. */
	if (sinfo->sinfo_stream >= asoc->c.sinit_num_ostreams) {
		err = -EINVAL;
		goto out_free;
	}
	}

	timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT);
	if (!sctp_wspace(asoc)) {