summaryrefslogtreecommitdiffstats
path: root/kernel/relay.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-06-30 23:59:06 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 04:44:59 +0200
commit200f1ce3656b8f466f74756677cea1b5e2aa851a (patch)
tree8fc0e394fda0a717aa7a33ae1e871b0ee9678d74 /kernel/relay.c
parentprintk: improve the description of /dev/kmsg line format (diff)
downloadlinux-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.c5
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);
}
/**