Commit 336e8683 authored by Giuseppe Scrivano's avatar Giuseppe Scrivano Committed by Jiri Kosina

inotify: remove superfluous return code check

Signed-off-by: default avatarGiuseppe Scrivano <gscrivano@gnu.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 870571a2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment