diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 14:59:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-30 19:44:59 -0700 |
commit | 200f1ce3656b8f466f74756677cea1b5e2aa851a (patch) | |
tree | 8fc0e394fda0a717aa7a33ae1e871b0ee9678d74 /kernel/relay.c | |
parent | b389645f041a9fc650819b1c1ce7abbef7f4912d (diff) | |
download | linux-200f1ce3656b8f466f74756677cea1b5e2aa851a.tar.bz2 |
kernel/relay.c: use kvfree() in relay_free_page_array()
Use kvfree() instead of open-coding it.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/relay.c')
-rw-r--r-- | kernel/relay.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/relay.c b/kernel/relay.c index e9dbaeb8fd65..0b4570cfacae 100644 --- a/kernel/relay.c +++ b/kernel/relay.c @@ -81,10 +81,7 @@ static struct page **relay_alloc_page_array(unsigned int n_pages) */ static void relay_free_page_array(struct page **array) { - if (is_vmalloc_addr(array)) - vfree(array); - else - kfree(array); + kvfree(array); } /** |