dect
/
linux-2.6
Archived
13
0
Fork 0

net/ipv6/datagram.c: Checkpatch cleanups

datagram.c:101: ERROR: "(foo*)" should be "(foo *)"
datagram.c:521: ERROR: space required before the open parenthesis '('
datagram.c:830: WARNING: braces {} are not necessary for single statement blocks
datagram.c:849: WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eldad Zack 2012-04-01 07:49:03 +00:00 committed by David S. Miller
parent d94d34a066
commit b5a4257cef
1 changed files with 4 additions and 6 deletions

View File

@ -827,9 +827,8 @@ int datagram_send_ctl(struct net *net, struct sock *sk,
int tc;
err = -EINVAL;
if (cmsg->cmsg_len != CMSG_LEN(sizeof(int))) {
if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
goto exit_f;
}
tc = *(int *)CMSG_DATA(cmsg);
if (tc < -1 || tc > 0xff)
@ -846,9 +845,8 @@ int datagram_send_ctl(struct net *net, struct sock *sk,
int df;
err = -EINVAL;
if (cmsg->cmsg_len != CMSG_LEN(sizeof(int))) {
if (cmsg->cmsg_len != CMSG_LEN(sizeof(int)))
goto exit_f;
}
df = *(int *)CMSG_DATA(cmsg);
if (df < 0 || df > 1)