All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomas Melin <tomas.melin@iki.fi>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] Staging: Comedi adv_pci1710: Cleaned up function check_channel_list
Date: Thu, 03 May 2012 13:55:19 +0000	[thread overview]
Message-ID: <CACraW2pi94heTXMwq2n52WUpF+CP-28--oZMVdAG_53GMeEXGA@mail.gmail.com> (raw)
In-Reply-To: <1335975217-5895-1-git-send-email-tomas.melin@iki.fi>

On Wed, May 2, 2012 at 11:06 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> Please break this up into one-change-per-patch, so it can be reviewed
> easier and accepted properly.

Ok, got it. I'll get back to you with a patch-series.

> Dan Carpenter <dan.carpenter@oracle.com> writes:
>> When I review this stuff I have a script called rename_rev.pl
>> (attached) and I `cat your_patch.txt | rename_rev.pl`.  It removes
>> the indenting changes and only shows the logic changes.  So the
>> solid block of changes becomes a two liner which takes 10 seconds
>> to review.  The other changes to line breaks and comments and curly
>> parens are much simpler to review on their own.  10 seconds for
>> each.  It's way way easier to review one liner changes than a
>> tangled block of changes.

Nice script, thanks.

Tomas




On Thu, May 3, 2012 at 11:40 AM, Nikola Pajkovsky <n.pajkovsky@gmail.com> wrote:
> Dan Carpenter <dan.carpenter@oracle.com> writes:
>
>> On Wed, May 02, 2012 at 07:13:37PM +0300, Tomas Melin wrote:
>>> -Simplified function logic by assuming that n_chan >1 if not <=1. Removes
>>> one level of indentation.
>>> -> readability improved and code fits into 80 chars
>>> - Code indentation fixes, corrected comments
>>> - Added braces to if() for readability
>>>
>>
>> Greg of course is the Boss-man and he already explained that this
>> needed to get broken up, but yeah I also wanted to say that as well.
>> The first patch should just pull the if (n_chan = 1) forward,
>> remove the else clause, and pull the indent level in.
>>
>> When I review this stuff I have a script called rename_rev.pl
>> (attached) and I `cat your_patch.txt | rename_rev.pl`.  It removes
>> the indenting changes and only shows the logic changes.  So the
>> solid block of changes becomes a two liner which takes 10 seconds
>> to review.  The other changes to line breaks and comments and curly
>> parens are much simpler to review on their own.  10 seconds for
>> each.  It's way way easier to review one liner changes than a
>> tangled block of changes.
>
> And I have to thank you for the script. thanks.
>
> --
> Nikola
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2012-05-03 13:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-02 16:13 [PATCH] Staging: Comedi adv_pci1710: Cleaned up function check_channel_list Tomas Melin
2012-05-02 17:41 ` walter harms
2012-05-02 18:10 ` Tomas Melin
2012-05-02 20:06 ` Greg KH
2012-05-02 21:24 ` walter harms
2012-05-03  8:17 ` Dan Carpenter
2012-05-03  8:40 ` Nikola Pajkovsky
2012-05-03 13:55 ` Tomas Melin [this message]

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=CACraW2pi94heTXMwq2n52WUpF+CP-28--oZMVdAG_53GMeEXGA@mail.gmail.com \
    --to=tomas.melin@iki.fi \
    --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.