From: Richard Weinberger <richard@nod.at>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
dedekind1@gmail.com, adrian.hunter@intel.com
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] UBIFS: Remove some dead code
Date: Tue, 1 Nov 2016 12:42:25 +0100 [thread overview]
Message-ID: <a074d673-cf23-d7a1-7b1e-0e1f8f7b0ffe@nod.at> (raw)
In-Reply-To: <20161101064525.11813-1-christophe.jaillet@wanadoo.fr>
On 01.11.2016 07:45, Christophe JAILLET wrote:
> 'ubifs_fast_find_freeable()' can not return an error pointer, so this test
> can be removed.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> fs/ubifs/gc.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c
> index e845c64b6ce1..7b35e3d6cde7 100644
> --- a/fs/ubifs/gc.c
> +++ b/fs/ubifs/gc.c
> @@ -846,10 +846,6 @@ int ubifs_gc_start_commit(struct ubifs_info *c)
> */
> while (1) {
> lp = ubifs_fast_find_freeable(c);
> - if (IS_ERR(lp)) {
> - err = PTR_ERR(lp);
> - goto out;
> - }
Good catch, how did you find this?
If you have a tool/script I'd like to use it too.
Thanks,
//richard
next prev parent reply other threads:[~2016-11-01 11:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 6:45 Christophe JAILLET
2016-11-01 11:42 ` Richard Weinberger [this message]
2016-11-01 19:17 ` Christophe JAILLET
2016-11-01 19:28 ` Julia Lawall
2016-11-01 19:32 ` Julia Lawall
2016-11-01 19:34 ` Julia Lawall
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=a074d673-cf23-d7a1-7b1e-0e1f8f7b0ffe@nod.at \
--to=richard@nod.at \
--cc=adrian.hunter@intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=dedekind1@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®