ocfs2: remove unnecessary null pointer check before kmem_cache_destroy()
authorpiaojun <[email protected]>
Thu, 5 Apr 2018 23:18:52 +0000 (16:18 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:22 +0000 (21:36 -0700)
commita17b485aae3effe2f35345dc7af4ed2070a2d949
tree4824c4d25b12e7d3affab699f82cc74c5677b457
parentbb34f24c7d2c98d0c81838a7700e6068325b17a0
ocfs2: remove unnecessary null pointer check before kmem_cache_destroy()

As kmem_cache_destroy() already handles null pointers, so we can remove
the conditional test entirely.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jun Piao <[email protected]>
Reviewed-by: Yiwen Jiang <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: Changwei Ge <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/dlm/dlmlock.c
fs/ocfs2/dlm/dlmmaster.c
fs/ocfs2/super.c
fs/ocfs2/uptodate.c