[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1308720921.18119.33.camel@sauron>
Date: Wed, 22 Jun 2011 08:35:17 +0300
From: Artem Bityutskiy <dedekind1@...il.com>
To: Jesper Juhl <jj@...osbits.net>
Cc: linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org,
David Woodhouse <dwmw2@...radead.org>, trivial@...nel.org
Subject: Re: [PATCH/Trivial] jffs2: Avoid unneeded 'if' before kfree
On Mon, 2011-06-13 at 22:16 +0200, Jesper Juhl wrote:
> kfree() deals gracefully with NULL pointers, so it's pointless to test for
> one prior to calling it.
> This removes such a test from jffs2_scan_medium().
>
> Signed-off-by: Jesper Juhl <jj@...osbits.net>
Pushed to l2-mtd-2.6.git, thanks!
--
Best Regards,
Artem Bityutskiy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists