fs/dlm: Remove NULL check.
PATCH 1/1 fs/dlm: Remove NULL check.
Remove unnessesary NULL check before kmem_cache_destroy() in fs/dlm/memory.c
Signed-off-by Sean Fu <[email protected]>
--- fs/dlm/memory.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
fs/dlm/memory.c +2 -4
@@ -38,10 +38,8 @@ int __init dlm_memory_init(void)void dlm_memory_exit (void ) { -if (lkb_cache) -kmem_cache_destroy (lkb_cache); -if (rsb_cache) -kmem_cache_destroy (rsb_cache); +kmem_cache_destroy (lkb_cache); +kmem_cache_destroy (rsb_cache); }char *dlm_allocate_lvb (struct dlm_ls *ls)
Signature · 1 line
2.6.2