提交 5ac697b7 编写于 作者: E Eric Paris

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: NEric Paris <eparis@redhat.com>
上级 ff52cc21
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册