[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54067269.9070200@miraclelinux.com>
Date: Wed, 03 Sep 2014 10:44:09 +0900
From: YOSHIFUJI Hideaki <hideaki.yoshifuji@...aclelinux.com>
To: Ian Morris <ipm@...rality.org.uk>, netdev@...r.kernel.org
CC: hideaki.yoshifuji@...aclelinux.com,
YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
Subject: Re: [PATCH net-next 1/4] ipv6: coding style - no assignment in if
statements
Hi,
Ian Morris wrote:
> This patch makes no changes to the logic of the ipv6 stack however
> it addresses some coding style issues by removing assignments made
> in if statements.
>
> No change in the object output is detected by the objdiff script.
>
> Signed-off-by: Ian Morris <ipm@...rality.org.uk>
> diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
> index b7a3e7b..86fc687 100644
> --- a/net/ipv6/ip6_output.c
> +++ b/net/ipv6/ip6_output.c
> @@ -754,9 +754,8 @@ slow_path:
> /*
> * Allocate buffer.
> */
> -
> - if ((frag = alloc_skb(len + hlen + sizeof(struct frag_hdr) +
> - hroom + troom, GFP_ATOMIC)) == NULL) {
> + frag = alloc_skb(len + hlen + sizeof(struct frag_hdr) + hroom + troom, GFP_ATOMIC);
> + if (frag == NULL) {
This line is too long.
Otherwise, it seems okay.
--
Hideaki Yoshifuji <hideaki.yoshifuji@...aclelinux.com>
Technical Division, MIRACLE LINUX CORPORATION
--
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