lib/sg_pool.c: remove unnecessary null check when freeing object
authorzhong jiang <zhongjiang@huawei.com>
Tue, 30 Oct 2018 22:05:37 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Oct 2018 15:54:13 +0000 (08:54 -0700)
commit7f476715d05f53915f0390e074a6988ce6a12f36
tree9f59abf8200f2115fa39dbbfcb013cd61bca7dd0
parent7a20c2fa1cc6edc1c3d1d40174fc30d1bbafa4d1
lib/sg_pool.c: remove unnecessary null check when freeing object

mempool_destroy(NULL) and kmem_cache_destroy(NULL) are legal

Link: http://lkml.kernel.org/r/1533054107-35657-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/sg_pool.c