diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-05-15 22:45:40 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-05-16 00:58:39 +0200 |
commit | 67367fd259f26d15e7e3ec15d0d8b8ab5601bbbb (patch) | |
tree | 540a07f915deef60f1fa516484e06874f838696b /drivers/input/evdev.c | |
parent | Input: soc_button_array - remove duplicated include (diff) | |
download | linux-67367fd259f26d15e7e3ec15d0d8b8ab5601bbbb.tar.xz linux-67367fd259f26d15e7e3ec15d0d8b8ab5601bbbb.zip |
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.c | 5 |
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); |