net: clean up net/ipv4/ipip.c raw.c tcp.c tcp_minisocks.c tcp_yeah.c xfrm4_policy.c
Signed-off-by: Jianjun Kong <jianjun@zeuux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d9319100c1
commit
5a5f3a8db9
@@ -247,7 +247,7 @@ static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info)
|
||||
}
|
||||
|
||||
if (inet->recverr) {
|
||||
struct iphdr *iph = (struct iphdr*)skb->data;
|
||||
struct iphdr *iph = (struct iphdr *)skb->data;
|
||||
u8 *payload = skb->data + (iph->ihl << 2);
|
||||
|
||||
if (inet->hdrincl)
|
||||
@@ -465,7 +465,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
|
||||
*/
|
||||
|
||||
if (msg->msg_namelen) {
|
||||
struct sockaddr_in *usin = (struct sockaddr_in*)msg->msg_name;
|
||||
struct sockaddr_in *usin = (struct sockaddr_in *)msg->msg_name;
|
||||
err = -EINVAL;
|
||||
if (msg->msg_namelen < sizeof(*usin))
|
||||
goto out;
|
||||
@@ -851,7 +851,7 @@ struct proto raw_prot = {
|
||||
static struct sock *raw_get_first(struct seq_file *seq)
|
||||
{
|
||||
struct sock *sk;
|
||||
struct raw_iter_state* state = raw_seq_private(seq);
|
||||
struct raw_iter_state *state = raw_seq_private(seq);
|
||||
|
||||
for (state->bucket = 0; state->bucket < RAW_HTABLE_SIZE;
|
||||
++state->bucket) {
|
||||
@@ -868,7 +868,7 @@ found:
|
||||
|
||||
static struct sock *raw_get_next(struct seq_file *seq, struct sock *sk)
|
||||
{
|
||||
struct raw_iter_state* state = raw_seq_private(seq);
|
||||
struct raw_iter_state *state = raw_seq_private(seq);
|
||||
|
||||
do {
|
||||
sk = sk_next(sk);
|
||||
|
Reference in New Issue
Block a user