Browse Source

inotify: remove superfluous return code check

Signed-off-by: Giuseppe Scrivano <gscrivano@gnu.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Giuseppe Scrivano 15 years ago
parent
commit
336e8683b9
1 changed files with 0 additions and 4 deletions
  1. 0 4
      fs/notify/inotify/inotify_user.c

+ 0 - 4
fs/notify/inotify/inotify_user.c

@@ -747,10 +747,6 @@ SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname,
 
 
 	/* create/update an inode mark */
 	/* create/update an inode mark */
 	ret = inotify_update_watch(group, inode, mask);
 	ret = inotify_update_watch(group, inode, mask);
-	if (unlikely(ret))
-		goto path_put_and_out;
-
-path_put_and_out:
 	path_put(&path);
 	path_put(&path);
 fput_and_out:
 fput_and_out:
 	fput_light(filp, fput_needed);
 	fput_light(filp, fput_needed);