From: Jens Axboe <axboe@kernel.dk>
To: Rik van Riel <riel@redhat.com>,
Julia Lawall <julia.lawall@lip6.fr>,
Christoph Hellwig <hch@lst.de>
Cc: Jeff Moyer <jmoyer@redhat.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block: fix returnvar.cocci warnings
Date: Wed, 27 May 2015 19:38:11 -0600 [thread overview]
Message-ID: <55667183.80203@kernel.dk> (raw)
In-Reply-To: <55667106.9000000@redhat.com>
On 05/27/2015 07:36 PM, Rik van Riel wrote:
> On 05/26/2015 03:59 PM, Julia Lawall wrote:
>> Remove unneeded variable used to store return value.
>>
>> Generated by: scripts/coccinelle/misc/returnvar.cocci
>>
>> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
>> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
>> ---
>>
>> One could check whether the ret variable was intended to be used for
>> anything.
>
> Which tree is this against?
>
> Linus's latest tree still has this in _submit_bh
> (unless git didn't pull the latest updates right):
>
> if (buffer_meta(bh))
> rw |= REQ_META;
> if (buffer_prio(bh))
> rw |= REQ_PRIO;
>
> bio_get(bio);
> submit_bio(rw, bio);
>
> if (bio_flagged(bio, BIO_EOPNOTSUPP))
> ret = -EOPNOTSUPP;
>
> bio_put(bio);
> return ret;
for-4.2/core has dropped the EOPNOTSUPP parts, that's where Julia found
the issue of the now unused 'ret'.
--
Jens Axboe
prev parent reply other threads:[~2015-05-28 1:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 19:59 [PATCH] block: fix returnvar.cocci warnings Julia Lawall
2015-05-26 20:10 ` Jens Axboe
2015-05-28 1:36 ` Rik van Riel
2015-05-28 1:38 ` Jens Axboe [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=55667183.80203@kernel.dk \
--to=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=jmoyer@redhat.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@redhat.com \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).