summaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-05-15 13:45:40 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-05-15 15:58:39 -0700
commit67367fd259f26d15e7e3ec15d0d8b8ab5601bbbb (patch)
tree540a07f915deef60f1fa516484e06874f838696b /drivers/input/evdev.c
parent6dd063353f9317955a67bc23249eac43128f7ff7 (diff)
downloadlinux-67367fd259f26d15e7e3ec15d0d8b8ab5601bbbb.tar.bz2
Input: evdev - use kvfree() in evdev_release()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index a18f41b89b6a..9d35499faca4 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -422,10 +422,7 @@ static int evdev_release(struct inode *inode, struct file *file)
evdev_detach_client(evdev, client);
- if (is_vmalloc_addr(client))
- vfree(client);
- else
- kfree(client);
+ kvfree(client);
evdev_close_device(evdev);