From 0f24b79b52730e15d9e3386ce27da2110eb4597d Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Fri, 15 May 2015 21:35:21 +0300 Subject: dm stats: Use kvfree() in dm_kvfree() Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg Signed-off-by: Mike Snitzer --- drivers/md/dm-stats.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'drivers/md/dm-stats.c') diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c index f478a4c96d2f..492fe6a5ebf2 100644 --- a/drivers/md/dm-stats.c +++ b/drivers/md/dm-stats.c @@ -160,10 +160,7 @@ static void dm_kvfree(void *ptr, size_t alloc_size) free_shared_memory(alloc_size); - if (is_vmalloc_addr(ptr)) - vfree(ptr); - else - kfree(ptr); + kvfree(ptr); } static void dm_stat_free(struct rcu_head *head) -- cgit v1.2.3