summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-06-30 21:59:18 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 02:44:59 (GMT)
commit48a20138abeb6d28cf781ae5c3c482e9ad9f89aa (patch)
treeb8a7d55c67a28e7ed24cd7f9d5dbdae88ed2972e
parent15e21cd1631e0eca16af545bbdf89e2ffa4cdaee (diff)
downloadlinux-48a20138abeb6d28cf781ae5c3c482e9ad9f89aa.tar.xz
drm/nouveau/gem: use kvfree() in u_free()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <penberg@kernel.org> Cc: David Airlie <airlied@linux.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gem.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
index 0e690bf..af1ee51 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -555,10 +555,7 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan,
static inline void
u_free(void *addr)
{
- if (!is_vmalloc_addr(addr))
- kfree(addr);
- else
- vfree(addr);
+ kvfree(addr);
}
static inline void *