public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cheah Kok Cheong <thrust73@gmail.com>
To: Michal Marek <mmarek@suse.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scripts: checkincludes: add exit message for no duplicates found
Date: Tue, 20 Dec 2016 17:10:21 +0800	[thread overview]
Message-ID: <20161220091020.GA2549@linux-Precision-WorkStation-T5500> (raw)
In-Reply-To: <213a88cd-de9c-d7f2-f765-1e8d35b569cf@suse.com>

On Mon, Dec 19, 2016 at 11:47:47AM +0100, Michal Marek wrote:
> On 2016-12-18 13:35, Cheah Kok Cheong wrote:
> > If no duplicates found, inform user.
> > 
> > Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
> > ---
> >  scripts/checkincludes.pl | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)
> > 
> > diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl
> > index 97b2c61..2bf234c 100755
> > --- a/scripts/checkincludes.pl
> > +++ b/scripts/checkincludes.pl
> > @@ -37,6 +37,13 @@ if ($#ARGV >= 1) {
> >  	}
> >  }
> >  
> > +my $dup_counter = 0;
> > +
> > +sub nodup_count {
> > +	++$dup_counter;
> > +	return;
> > +}
> 
> I don't think it's necessary to have a function only to increment a
> variable.
> 
> Michal

Sorry do you mean the subroutine is not required and the "variable" is
best placed inside directly?

Thanks.
CheahKC

      reply	other threads:[~2016-12-20  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-18 12:35 [PATCH] scripts: checkincludes: add exit message for no duplicates found Cheah Kok Cheong
2016-12-19 10:47 ` Michal Marek
2016-12-20  9:10   ` Cheah Kok Cheong [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=20161220091020.GA2549@linux-Precision-WorkStation-T5500 \
    --to=thrust73@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.com \
    /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