projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecfbf6f
)
devtmpfs: Calling delete_path() only when necessary
author
Axel Lin
<axel.lin@ingics.com>
Sat, 16 Nov 2013 08:15:23 +0000
(16:15 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 19 Dec 2013 18:10:32 +0000
(10:10 -0800)
The deleted variable is always 1 in current code.
Initialize deleted variable to be 0, so delete_path() will be called only when
necessary.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devtmpfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/devtmpfs.c
b/drivers/base/devtmpfs.c
index 0f3820121e02effe1c0dcf257cafadad02fc7469..25798db14553265e899257d8e13e53fc356e81bb 100644
(file)
--- a/
drivers/base/devtmpfs.c
+++ b/
drivers/base/devtmpfs.c
@@
-299,7
+299,7
@@
static int handle_remove(const char *nodename, struct device *dev)
{
struct path parent;
struct dentry *dentry;
- int deleted =
1
;
+ int deleted =
0
;
int err;
dentry = kern_path_locked(nodename, &parent);