Re: [PATCH] jffs2: Remove NULL checks from jffs2_destroy_slab_caches

From: Richard Weinberger
Date: Tue Aug 04 2015 - 16:02:43 EST


On Tue, Aug 4, 2015 at 9:46 PM, Salah Triki <salah.triki@xxxxxxx> wrote:
> kmem_cache_destroy can be called with NULL values. Thus, the checks that
> precede the calls are useless.

Since when?
I don't see a !NULL check in kmem_cache_destroy().

--
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/