projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa94f75
)
test: remove unreachable code
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 14 Feb 2019 22:32:04 +0000
(08:32 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 14 Feb 2019 22:35:52 +0000
(08:35 +1000)
When the loop was reduced to BTN_DIGI only, it guaranteed that the BTN_STYLUS
condition was no longer met.
Found by coverity
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-pad.c
patch
|
blob
|
history
diff --git
a/test/test-pad.c
b/test/test-pad.c
index 2965436ce901912719bcdc81471919d09817ffec..6ba8925cf0a8fd6c732a9d7511d656e5da66a91c 100644
(file)
--- a/
test/test-pad.c
+++ b/
test/test-pad.c
@@
-80,14
+80,6
@@
START_TEST(pad_time)
litest_button_click(dev, code, 0);
libinput_dispatch(li);
- switch (code) {
- case BTN_STYLUS:
- litest_assert_empty_queue(li);
- continue;
- default:
- break;
- }
-
break;
}