diff options
author | Tim Hansen <devtimhansen@gmail.com> | 2017-11-08 12:00:40 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-11-09 09:23:47 -0800 |
commit | 478f8da0f7c95f847a02f8e3b808926c894e3830 (patch) | |
tree | 6d0369bc87c0fed0b234a55de566ab98fc1b0a6c /fs/xfs/kmem.h | |
parent | 4da4b10b5bde05d5b666405c74362a93da4b5ec4 (diff) |
fs/xfs: Remove NULL check before kmem_cache_destroy
kmem_cache_destroy already checks for null values.
Signed-off-by: Tim Hansen <devtimhansen@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/kmem.h')
-rw-r--r-- | fs/xfs/kmem.h | 3 |
1 files changed, 1 insertions, 2 deletions
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); |