From 478f8da0f7c95f847a02f8e3b808926c894e3830 Mon Sep 17 00:00:00 2001 From: Tim Hansen Date: Wed, 8 Nov 2017 12:00:40 -0800 Subject: fs/xfs: Remove NULL check before kmem_cache_destroy kmem_cache_destroy already checks for null values. Signed-off-by: Tim Hansen Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- fs/xfs/kmem.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs') diff --git a/fs/xfs/kmem.h b/fs/xfs/kmem.h index 4d85992d75b2..758f37ac5ad3 100644 --- a/fs/xfs/kmem.h +++ b/fs/xfs/kmem.h @@ -119,8 +119,7 @@ kmem_zone_free(kmem_zone_t *zone, void *ptr) static inline void kmem_zone_destroy(kmem_zone_t *zone) { - if (zone) - kmem_cache_destroy(zone); + kmem_cache_destroy(zone); } extern void *kmem_zone_alloc(kmem_zone_t *, xfs_km_flags_t); -- cgit v1.2.3