From: Giuseppe Scrivano Date: Thu, 3 Dec 2009 16:01:41 +0000 (+0100) Subject: inotify: remove superfluous return code check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=336e8683b9a8921049d0e6bb0ca5e18160828ec6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git inotify: remove superfluous return code check Signed-off-by: Giuseppe Scrivano Signed-off-by: Jiri Kosina --- diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index dcd2040d330..499f5ede0ad 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, /* 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);