Skip to content

Commit

Permalink
dnotify: do not use ?true:false when assigning to a bool
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Paris committed Jun 11, 2009
1 parent ff52cc2 commit 5ac697b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/notify/dnotify/dnotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 5ac697b

Please sign in to comment.