Skip to content

Commit

Permalink
inotify: remove superfluous return code check
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivano@gnu.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Giuseppe Scrivano authored and Jiri Kosina committed Dec 4, 2009
1 parent 870571a commit 336e868
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/notify/inotify/inotify_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,6 @@ SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname,

/* create/update an inode mark */
ret = inotify_update_watch(group, inode, mask);
if (unlikely(ret))
goto path_put_and_out;

path_put_and_out:
path_put(&path);
fput_and_out:
fput_light(filp, fput_needed);
Expand Down

0 comments on commit 336e868

Please sign in to comment.