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:
Родитель
6dd063353f
Коммит
67367fd259
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче