Input: evdev - use kvfree() in evdev_release()
authorPekka Enberg <penberg@kernel.org>
Fri, 15 May 2015 20:45:40 +0000 (13:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 15 May 2015 22:58:39 +0000 (15:58 -0700)
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/evdev.c

index a18f41b..9d35499 100644 (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);