diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-11-26 10:00:49 +1000 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-12-02 15:51:03 -0800 |
commit | fb84f8b5c78cbbcbf32df56d2573e8b93c4eaa49 (patch) | |
tree | 8cc37b09e2b58aea7a3e58f04e901229bc79e039 | |
parent | 1f1c1ae85600c058f1971e981da9a31eadb71dec (diff) |
dix: remove now unnecessary !! before BitIsOn()
The macro has been changed to do this already, no need for double
not-not-ing.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 23e3d1f23318ce69623f91908f888a09f8b74ac2)
-rw-r--r-- | dix/getevents.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index b23deaa2d..c09972f9c 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -114,9 +114,9 @@ button_is_down(DeviceIntPtr pDev, int button, int type) int ret = 0; if (type & BUTTON_PROCESSED) - ret |= !!BitIsOn(pDev->button->down, button); + ret |= BitIsOn(pDev->button->down, button); if (type & BUTTON_POSTED) - ret |= !!BitIsOn(pDev->button->postdown, button); + ret |= BitIsOn(pDev->button->postdown, button); return ret; } @@ -145,9 +145,9 @@ key_is_down(DeviceIntPtr pDev, int key_code, int type) int ret = 0; if (type & KEY_PROCESSED) - ret |= !!BitIsOn(pDev->key->down, key_code); + ret |= BitIsOn(pDev->key->down, key_code); if (type & KEY_POSTED) - ret |= !!BitIsOn(pDev->key->postdown, key_code); + ret |= BitIsOn(pDev->key->postdown, key_code); return ret; } |