From: Wei Yongjun Date: Mon, 2 Mar 2009 09:46:11 +0000 (+0000) Subject: sctp: remove dup code in net/sctp/socket.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d212318c9d1b11ff44b57f90b4f9d9c9b31a6ced;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git sctp: remove dup code in net/sctp/socket.c Remove dup check of "if (optlen < sizeof(int))". Signed-off-by: Wei Yongjun Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index dea864f5de54..4bc558c19fcf 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -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");