diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-27 17:22:35 +0300 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-05-28 16:08:16 +0300 |
| commit | f58617ff687ba2d58f37ac88c12d004e9f68ae3a (patch) | |
| tree | 8c7e75aa19485ea48244592eedd20838658082a4 | |
| parent | 50897c955902c93ae71c38698abb910525ebdc89 (diff) | |
| download | linux-f58617ff687ba2d58f37ac88c12d004e9f68ae3a.tar.xz | |
fanotify: simplify fanotify_error_event_equal
Return the result of calling fanotify_fsid_equal() directly to simplify
the code.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260527142233.1256340-3-thorsten.blum@linux.dev
Signed-off-by: Jan Kara <jack@suse.cz>
| -rw-r--r-- | fs/notify/fanotify/fanotify.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 38290b9c07f7..8ed77901db57 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, |
