mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
ff52cc2158
commit
5ac697b793
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group,
|
|||
return false;
|
||||
|
||||
spin_lock(&entry->lock);
|
||||
send = (mask & entry->mask) ? true : false;
|
||||
send = (mask & entry->mask);
|
||||
spin_unlock(&entry->lock);
|
||||
fsnotify_put_mark(entry); /* matches fsnotify_find_mark_entry */
|
||||
|
||||
|
|
Loading…
Reference in a new issue