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>
This commit is contained in:
Pekka Enberg 2015-05-15 13:45:40 -07:00 committed by Dmitry Torokhov
parent 6dd063353f
commit 67367fd259

View File

@ -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);