* [PATCH] fsnotify.h: Dropped redundant code.
@ 2011-01-24 17:45 Radu Voicilas
0 siblings, 0 replies; only message in thread
From: Radu Voicilas @ 2011-01-24 17:45 UTC (permalink / raw)
To: eparis; +Cc: linux-kernel, Radu Voicilas
The code that checks to see whether the provided dentry object is valid
or not is redundant with the one that's in fs/notify/fsnotify.c in
the __fsnotify_parent function:
if (!dentry)
dentry = path->dentry;
Signed-off-by: Radu Voicilas <rvoicilas@gmail.com>
---
include/linux/fsnotify.h | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h
index 2a53f10..9e67a41 100644
--- a/include/linux/fsnotify.h
+++ b/include/linux/fsnotify.h
@@ -27,9 +27,6 @@ static inline void fsnotify_d_instantiate(struct dentry *dentry,
/* Notify this dentry's parent about a child's events. */
static inline int fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask)
{
- if (!dentry)
- dentry = path->dentry;
-
return __fsnotify_parent(path, dentry, mask);
}
--
1.7.0.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-24 17:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 17:45 [PATCH] fsnotify.h: Dropped redundant code Radu Voicilas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®