diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 23:59:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 04:44:59 +0200 |
commit | 200f1ce3656b8f466f74756677cea1b5e2aa851a (patch) | |
tree | 8fc0e394fda0a717aa7a33ae1e871b0ee9678d74 /kernel/relay.c | |
parent | printk: improve the description of /dev/kmsg line format (diff) | |
download | linux-200f1ce3656b8f466f74756677cea1b5e2aa851a.tar.xz linux-200f1ce3656b8f466f74756677cea1b5e2aa851a.zip |
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); } /** |