net: return operator cleanup
Change "return (EXPR);" to "return EXPR;" return is not a function, parentheses are not required. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6a08d194ee
commit
a02cec2155
@@ -764,7 +764,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
|
||||
return -EINVAL;
|
||||
|
||||
if (sin6->sin6_family && sin6->sin6_family != AF_INET6)
|
||||
return(-EAFNOSUPPORT);
|
||||
return -EAFNOSUPPORT;
|
||||
|
||||
/* port is the proto value [0..255] carried in nexthdr */
|
||||
proto = ntohs(sin6->sin6_port);
|
||||
@@ -772,10 +772,10 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
|
||||
if (!proto)
|
||||
proto = inet->inet_num;
|
||||
else if (proto != inet->inet_num)
|
||||
return(-EINVAL);
|
||||
return -EINVAL;
|
||||
|
||||
if (proto > 255)
|
||||
return(-EINVAL);
|
||||
return -EINVAL;
|
||||
|
||||
daddr = &sin6->sin6_addr;
|
||||
if (np->sndflow) {
|
||||
@@ -985,7 +985,7 @@ static int do_rawv6_setsockopt(struct sock *sk, int level, int optname,
|
||||
/* You may get strange result with a positive odd offset;
|
||||
RFC2292bis agrees with me. */
|
||||
if (val > 0 && (val&1))
|
||||
return(-EINVAL);
|
||||
return -EINVAL;
|
||||
if (val < 0) {
|
||||
rp->checksum = 0;
|
||||
} else {
|
||||
@@ -997,7 +997,7 @@ static int do_rawv6_setsockopt(struct sock *sk, int level, int optname,
|
||||
break;
|
||||
|
||||
default:
|
||||
return(-ENOPROTOOPT);
|
||||
return -ENOPROTOOPT;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1190,7 +1190,7 @@ static int rawv6_init_sk(struct sock *sk)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct proto rawv6_prot = {
|
||||
|
Reference in New Issue
Block a user