Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ac697b7 authored by Eric Paris's avatar Eric Paris
Browse files

dnotify: do not use ?true:false when assigning to a bool



dnotify_should send event assigned a bool using ?true:false when computing
a bit operation.  This is poitless and the bool type does this for us.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent ff52cc21
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -154,7 +154,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group,
		return false;
		return false;


	spin_lock(&entry->lock);
	spin_lock(&entry->lock);
	send = (mask & entry->mask) ? true : false;
	send = (mask & entry->mask);
	spin_unlock(&entry->lock);
	spin_unlock(&entry->lock);
	fsnotify_put_mark(entry); /* matches fsnotify_find_mark_entry */
	fsnotify_put_mark(entry); /* matches fsnotify_find_mark_entry */