aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
authorJan Kara <jack@suse.cz>2026-05-28 15:08:51 +0200
committerJan Kara <jack@suse.cz>2026-05-28 15:08:51 +0200
commite10b5b0be08394c76c236f519e49cdc8153cbc01 (patch)
tree1064057849003279ff1d59757857bdeba4da5d6c /fs
parent9ddaf06cb08b4ea0eec8b9307d5d822fbb111461 (diff)
parentf58617ff687ba2d58f37ac88c12d004e9f68ae3a (diff)
downloadlinux-next-history-e10b5b0be08394c76c236f519e49cdc8153cbc01.tar.gz
Pull fanotify_error_event_equal() cleanup
Diffstat (limited to 'fs')
-rw-r--r--fs/notify/fanotify/fanotify.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c
index 38290b9c07f7b..8ed77901db57c 100644
--- a/fs/notify/fanotify/fanotify.c
+++ b/fs/notify/fanotify/fanotify.c
@@ -120,10 +120,7 @@ static bool fanotify_error_event_equal(struct fanotify_error_event *fee1,
struct fanotify_error_event *fee2)
{
/* Error events against the same file system are always merged. */
- if (!fanotify_fsid_equal(&fee1->fsid, &fee2->fsid))
- return false;
-
- return true;
+ return fanotify_fsid_equal(&fee1->fsid, &fee2->fsid);
}
static bool fanotify_should_merge(struct fanotify_event *old,