From: Luca Tettamanti <kronos.it@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Eric Paris <eparis@redhat.com>, John McCutchan <john@johnmccutchan.com>
Subject: [PATCH] inotify_ignored_and_remove_idr: remove unsued variable
Date: Tue, 24 May 2011 15:33:16 +0200 [thread overview]
Message-ID: <20110524133316.GA11623@nb-core2.darkstar.lan> (raw)
The funtion returns void, no need to track the return value (this is leftover
from f70ab54c).
Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Cc: Eric Paris <eparis@redhat.com>
---
fs/notify/inotify/inotify_user.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c
index 8445fbc..9d1b993 100644
--- a/fs/notify/inotify/inotify_user.c
+++ b/fs/notify/inotify/inotify_user.c
@@ -517,7 +517,6 @@ void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
struct fsnotify_event *ignored_event, *notify_event;
struct inotify_event_private_data *event_priv;
struct fsnotify_event_private_data *fsn_event_priv;
- int ret;
ignored_event = fsnotify_create_event(NULL, FS_IN_IGNORED, NULL,
FSNOTIFY_EVENT_NONE, NULL, 0,
@@ -538,9 +537,7 @@ void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
notify_event = fsnotify_add_notify_event(group, ignored_event, fsn_event_priv, NULL);
if (notify_event) {
- if (IS_ERR(notify_event))
- ret = PTR_ERR(notify_event);
- else
+ if (!IS_ERR(notify_event))
fsnotify_put_event(notify_event);
inotify_free_event_priv(fsn_event_priv);
}
--
1.7.5.1
reply other threads:[~2011-05-24 13:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110524133316.GA11623@nb-core2.darkstar.lan \
--to=kronos.it@gmail.com \
--cc=eparis@redhat.com \
--cc=john@johnmccutchan.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®