inotify_ignored_and_remove_idr: remove unsued variable
Subsystems (2)
PATCH 1/1 inotify_ignored_and_remove_idr: remove unsued variable
The funtion returns void, no need to track the return value (this is leftover from f70ab54c).
Signed-off-by Luca Tettamanti <[email protected]>
Cc Eric Paris <[email protected]>
--- fs/notify/inotify/inotify_user.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
fs/notify/inotify/inotify_user.c +1 -4
@@ -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); }
Signature · 1 line
1.7.5.1