diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-05-15 21:35:21 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-06-11 17:13:02 -0400 |
commit | 0f24b79b52730e15d9e3386ce27da2110eb4597d (patch) | |
tree | 2b130289e6b1700a7142b457597a061589cf1ba0 | |
parent | fba10109a45d864bab98ae90dd63bcc2789352b3 (diff) |
dm stats: Use kvfree() in dm_kvfree()
Use kvfree() instead of open-coding it.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r-- | drivers/md/dm-stats.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) |