netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: xiaosuo@gmail.com
Cc: kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org,
	yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org
Subject: Re: [PATCH] net: arp: code cleanup
Date: Wed, 01 Sep 2010 17:57:12 -0700 (PDT)	[thread overview]
Message-ID: <20100901.175712.199039832.davem@davemloft.net> (raw)
In-Reply-To: <1283385110-2953-1-git-send-email-xiaosuo@gmail.com>

From: Changli Gao <xiaosuo@gmail.com>
Date: Thu,  2 Sep 2010 07:51:50 +0800

> Clean the code up according to Documentation/CodingStyle.
> 
> Don't initialize the variable dont_send in arp_process().
> 
> Remove the temporary varialbe flags in arp_state_to_flags().
> 
> Replace printk(KERN_DEBUG...) with pr_debug(...).
> 
> Signed-off-by: Changli Gao <xiaosuo@gmail.com>
> ---
>  1 file changed, 212 insertions(+), 228 deletions(-)
> diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
> index 96c1955..cbb0e7c 100644
> --- a/net/ipv4/arp.c
> +++ b/net/ipv4/arp.c
> @@ -1,4 +1,5 @@
> -/* linux/net/ipv4/arp.c
> +/*
> + * linux/net/ipv4/arp.c
>   *
>   * Copyright (C) 1994 by Florian  La Roche
>   *

I do not condone comments being written this way, it wastes precious
vertical space in one's terminal window.  They should always be
written as:

	/* A comment
	 * looks like this.
	 */

in any patch you want me to apply in the networking.

And what really angers me when people touch things like that is
how later in the patch:

> @@ -258,31 +259,31 @@ static int arp_constructor(struct neighbour *neigh)
>  		neigh->output = neigh->ops->queue_xmit;
>  	} else {
>  		/* Good devices (checked by reading texts, but only Ethernet is
> -		   tested)
> -
> -		   ARPHRD_ETHER: (ethernet, apfddi)
 ...
> -		   in old paradigm.
> +		 * tested)
> +		 *
> +		 * ARPHRD_ETHER: (ethernet, apfddi)

you go and apply COMPLETELY INCONSISTENT changes to other comemnts.

Leave the comments alone, thanks.

  reply	other threads:[~2010-09-02  0:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 23:51 [PATCH] net: arp: code cleanup Changli Gao
2010-09-02  0:57 ` David Miller [this message]
2010-09-02  1:28   ` Changli Gao
2010-09-02  1:33     ` David Miller
2010-09-02  1:29   ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100901.175712.199039832.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jmorris@namei.org \
    --cc=kaber@trash.net \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@vger.kernel.org \
    --cc=pekkas@netcore.fi \
    --cc=xiaosuo@gmail.com \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).