[PATCH 1/3] ste_dma40: Delete an unnecessary check before the function call "kmem_cache_destroy"

Linus Walleij linus.walleij at linaro.org
Sun Nov 29 13:26:42 PST 2015


On Mon, Nov 16, 2015 at 10:23 PM, SF Markus Elfring
<elfring at users.sourceforge.net> wrote:

> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Mon, 16 Nov 2015 20:26:27 +0100
>
> The kmem_cache_destroy() function tests whether its argument is NULL
> and then returns immediately. Thus the test around the call is not needed.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring at users.sourceforge.net>

Acked-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list