mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
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>
This commit is contained in:
parent
50897c9559
commit
f58617ff68
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user