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

Commit d212318c authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

sctp: remove dup code in net/sctp/socket.c



Remove dup check of "if (optlen < sizeof(int))".

Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 906f8257
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3069,9 +3069,6 @@ static int sctp_setsockopt_maxburst(struct sock *sk,
	int val;
	int assoc_id = 0;

	if (optlen < sizeof(int))
		return -EINVAL;

	if (optlen == sizeof(int)) {
		printk(KERN_WARNING
		   "SCTP: Use of int in max_burst socket option deprecated\n");
@@ -5283,9 +5280,6 @@ static int sctp_getsockopt_maxburst(struct sock *sk, int len,
	struct sctp_sock *sp;
	struct sctp_association *asoc;

	if (len < sizeof(int))
		return -EINVAL;

	if (len == sizeof(int)) {
		printk(KERN_WARNING
		   "SCTP: Use of int in max_burst socket option deprecated\n");