]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Delete unnecessary checks before the function call "mempool_destroy"
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 16 Nov 2015 07:20:36 +0000 (08:20 +0100)
committerRich Felker <dalias@libc.org>
Fri, 5 Aug 2016 03:29:42 +0000 (03:29 +0000)
commited018c05c7a11fea2548c9cf72130d0ad48ab37e
treeaab9785668d4362266dabe1dc5526d83cf4f9c45
parent246632dfd2fbea04376b1dfe1be33c6aa649eec0
sh: Delete unnecessary checks before the function call "mempool_destroy"

The mempool_destroy() function tests whether its argument is NULL
and then returns immediately. Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/kernel/dwarf.c