]> 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)
commita316399635e334c878a88c90044c1e45f57129a4
treeaab9785668d4362266dabe1dc5526d83cf4f9c45
parenta1e262f6f126466f51d6955fb5bd6aaf0aacf68f
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