projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dd0633
)
Input: evdev - use kvfree() in evdev_release()
author
Pekka Enberg
<penberg@kernel.org>
Fri, 15 May 2015 20:45:40 +0000
(13:45 -0700)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/drivers/input/evdev.c
b/drivers/input/evdev.c
index a18f41b89b6a90bc9f92053af8b16e466c2f562b..9d35499faca46bb3067138e795e5544527d956d6 100644
(file)
--- 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);