forked from Minki/linux
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:
parent
4da4b10b5b
commit
478f8da0f7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user