From: mmarek@suse.cz (Michal Marek)
To: cocci@systeme.lip6.fr
Subject: [Cocci] [PATCH V2] coccicheck: Add unneeded return variable test
Date: Tue, 10 Jun 2014 14:37:12 +0200 [thread overview]
Message-ID: <5396FBF8.2060700@suse.cz> (raw)
In-Reply-To: <1401646351-12474-1-git-send-email-peter.senna@gmail.com>
On 2014-06-01 20:12, Peter Senna Tschudin wrote:
> This semantic patch looks for variables that are initialized with a
> constant, are never updated, and are only used as parameter of return.
> Return the constant instead of using a variable.
>
> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Applied to kbuild.git#misc, thanks.
Michal
WARNING: multiple messages have this Message-ID (diff)
From: Michal Marek <mmarek@suse.cz>
To: Peter Senna Tschudin <peter.senna@gmail.com>,
Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr,
nicolas.palix@imag.fr, linux-kernel@vger.kernel.org,
cocci@systeme.lip6.fr
Subject: Re: [PATCH V2] coccicheck: Add unneeded return variable test
Date: Tue, 10 Jun 2014 14:37:12 +0200 [thread overview]
Message-ID: <5396FBF8.2060700@suse.cz> (raw)
In-Reply-To: <1401646351-12474-1-git-send-email-peter.senna@gmail.com>
On 2014-06-01 20:12, Peter Senna Tschudin wrote:
> This semantic patch looks for variables that are initialized with a
> constant, are never updated, and are only used as parameter of return.
> Return the constant instead of using a variable.
>
> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Applied to kbuild.git#misc, thanks.
Michal
next prev parent reply other threads:[~2014-06-10 12:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-01 18:12 [Cocci] [PATCH V2] coccicheck: Add unneeded return variable test Peter Senna Tschudin
2014-06-01 18:12 ` Peter Senna Tschudin
2014-06-10 12:37 ` Michal Marek [this message]
2014-06-10 12:37 ` Michal Marek
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=5396FBF8.2060700@suse.cz \
--to=mmarek@suse.cz \
--cc=cocci@systeme.lip6.fr \
/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.