aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/inotify
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2009-12-03 11:01:41 -0500
committerJiri Kosina <jkosina@suse.cz>2009-12-04 09:39:58 -0500
commit336e8683b9a8921049d0e6bb0ca5e18160828ec6 (patch)
tree53d921024a3cc62615cca5b5c54934ebfc70db7c /fs/notify/inotify
parent870571a2ef6fb2d6306673b4376fec93d441e013 (diff)
inotify: remove superfluous return code check
Signed-off-by: Giuseppe Scrivano <gscrivano@gnu.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/notify/inotify')
-rw-r--r--fs/notify/inotify/inotify_user.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c
index dcd2040d330c..499f5ede0adf 100644
--- a/fs/notify/inotify/inotify_user.c
+++ b/fs/notify/inotify/inotify_user.c
@@ -747,10 +747,6 @@ SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname,
747 747
748 /* create/update an inode mark */ 748 /* create/update an inode mark */
749 ret = inotify_update_watch(group, inode, mask); 749 ret = inotify_update_watch(group, inode, mask);
750 if (unlikely(ret))
751 goto path_put_and_out;
752
753path_put_and_out:
754 path_put(&path); 750 path_put(&path);
755fput_and_out: 751fput_and_out:
756 fput_light(filp, fput_needed); 752 fput_light(filp, fput_needed);