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>
This commit is contained in:
Tim Hansen 2017-11-08 12:00:40 -08:00 committed by Darrick J. Wong
parent 4da4b10b5b
commit 478f8da0f7

View File

@ -119,7 +119,6 @@ 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);
}