All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Arlott <simon@fire.lp0.eu>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: bjorn.helgaas@hp.com
Subject: Fwd: PNP: Lindent all source files
Date: Fri, 27 Jul 2007 00:05:54 +0100	[thread overview]
Message-ID: <46A928D2.6030702@simon.arlott.org.uk> (raw)

Does anyone ever review what Lindent does? There's a fix up patch after this 
but it missed this at the very top of the patch and the labels.

> Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9dd78466c956ac4b4f38e12032dc4249ccf57ad1
> Commit:     9dd78466c956ac4b4f38e12032dc4249ccf57ad1
> Parent:     8ec3cf7d29aef773eee5bc6cd9b0fa4d3fb42480
> Author:     Bjorn Helgaas <bjorn.helgaas@hp.com>
> AuthorDate: Thu Jul 26 10:41:20 2007 -0700
> Committer:  Linus Torvalds <torvalds@woody.linux-foundation.org>
> CommitDate: Thu Jul 26 11:35:20 2007 -0700
> 
>     PNP: Lindent all source files
>     
> diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c
> index dd6384b..a379a38 100644
> --- a/drivers/pnp/card.c
> +++ b/drivers/pnp/card.c
> @@ -13,26 +13,28 @@
> -					if (compare_pnp_id(dev->id, drv_id->devs[i].id)) {
> +					if (compare_pnp_id
> +					    (dev->id, drv_id->devs[i].id)) {

Leaving only the function name on a seperate line? How is that better?


> @@ -320,7 +330,7 @@ found:
>  
>  	return dev;
>  
> -err_out:
> +      err_out:
>  	dev->dev.driver = NULL;
>  	dev->card_link = NULL;
>  	return NULL;

Six spaces before a label that originally had no indentation?


The spaces it uses on lines after if (which happens all over the place) 
appear to go against CodingStyle's:
"Outside of comments, documentation and except in Kconfig, spaces are never
used for indentation, and the above example is deliberately broken."

-- 
Simon Arlott

             reply	other threads:[~2007-07-26 23:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26 23:05 Simon Arlott [this message]
2007-07-26 23:31 ` Fwd: PNP: Lindent all source files Kok, Auke
2007-07-26 23:40 ` Jesper Juhl
2007-07-27 16:57 ` Fwd: " Bjorn Helgaas

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=46A928D2.6030702@simon.arlott.org.uk \
    --to=simon@fire.lp0.eu \
    --cc=bjorn.helgaas@hp.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.