From: Greg KH <greg@kroah.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ][Patch] fix coding style in fscpos.c
Date: Thu, 23 Feb 2006 17:45:18 +0000 [thread overview]
Message-ID: <20060223174518.GD32692@kroah.com> (raw)
In-Reply-To: <1140611727.7778.8.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]
On Thu, Feb 23, 2006 at 09:57:36AM +0100, Jean Delvare wrote:
>
> Hi Adrian,
>
> On 2006-02-23, Adrian Bunk wrote:
> > > > /* Range: 0..255 */
> > > > - if (v < 0) v = 0;
> > > > - if (v > 255) v = 255;
> > > > + if (v < 0)
> > > > + v = 0;
> > > > + if (v > 255)
> > > > + v = 255;
> > >
> > > Not worth the effort IMHO. The original code is pretty readable as it
> > > is so I wouldn't change it.
> >
> > It's against the kernel coding style.
> >
> > There many several cases with several ways to express something pretty
> > readable (opening braces being an religious example), but the goal is
> > to stick with one way to express something throughout the whole kernel.
>
> I didn't mean to say otherwise. I request submitters of new drivers and
> patches to comply with CodingStyle and even with the kernel guide to
> space. I'm quite picky about it actually, just ask these submitters and
> they'll tell you. I also wholeheartedly accept a cleanup patch,
> including coding style, as the first patch of a patchset improving any
> given driver, as it makes the next patches easier to work on and review.
>
> However, I don't see much benefit in patches randomly fixing one coding
> style mistake in a random driver, unless that mistake was making the
> code especially unclear or error prone. The overhead to my workload and
> in the driver history is simply not worth the gain. This was the meaning
> of my reply.
That's exactly the point of the janitor project, to make changes like
this in places where needed.
Here, this is needed :)
thanks,
greg k-h
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2006-02-23 17:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 12:35 [KJ][Patch] fix coding style in fscpos.c Darren Jenkins\
2006-02-22 21:02 ` Jean Delvare
2006-02-22 23:12 ` Adrian Bunk
2006-02-23 8:57 ` Jean Delvare
2006-02-23 17:45 ` Greg KH [this message]
2006-02-23 17:58 ` Randy.Dunlap
2006-02-23 18:06 ` Greg KH
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=20060223174518.GD32692@kroah.com \
--to=greg@kroah.com \
--cc=kernel-janitors@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.