[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081009.185230.46697834.yoshfuji@linux-ipv6.org>
Date: Thu, 09 Oct 2008 18:52:30 +0900 (JST)
From: YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@...ux-ipv6.org>
To: ilpo.jarvinen@...sinki.fi
Cc: davem@...emloft.net, netdev@...r.kernel.org,
yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH 2/4] tcpv6: trivial formatting changes to
send_(ack|reset)
In article <1223544937-12595-2-git-send-email-ilpo.jarvinen@...sinki.fi> (at Thu, 9 Oct 2008 12:35:35 +0300), "Ilpo Järvinen" <ilpo.jarvinen@...sinki.fi> says:
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...sinki.fi>
> ---
> net/ipv6/tcp_ipv6.c | 7 +++----
> 1 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
> index 2084f5a..3f268a3 100644
> --- a/net/ipv6/tcp_ipv6.c
> +++ b/net/ipv6/tcp_ipv6.c
> @@ -948,7 +948,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb)
> struct flowi fl;
> struct net *net = dev_net(skb->dst->dev);
> struct sock *ctl_sk = net->ipv6.tcp_sk;
> - unsigned int tot_len = sizeof(*th);
> + unsigned int tot_len = sizeof(struct tcphdr);
> #ifdef CONFIG_TCP_MD5SIG
> struct tcp_md5sig_key *key;
> #endif
I usually prefer sizeof(var) (or sizeof(*ptr)) over sizeof(type).
Could you justify this change?
--yoshfuji
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists