[PATCH/Trivial] jffs2: Avoid unneeded 'if' before kfree

Artem Bityutskiy dedekind1 at gmail.com
Wed Jun 22 01:35:17 EDT 2011


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 at chaosbits.net>

Pushed to l2-mtd-2.6.git, thanks!

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list