summaryrefslogtreecommitdiff
path: root/test/test-libevdev-events.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-03-04 07:10:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-03-04 07:10:33 +1000
commit2a27abf82459fbbd8ead11216f06b52fa3a556d0 (patch)
tree1c22e288b1d9af4cb2042e1b13c4c009317feb4f /test/test-libevdev-events.c
parentbf8e6b2982603e7b7f233b11ac786f5de1a9ddb5 (diff)
downloadlibevdev-2a27abf82459fbbd8ead11216f06b52fa3a556d0.tar.gz
test: drop unnecessary return value
We abort if anything goes wrong anyway, so we never returned anything but success. Found by coverity. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Diffstat (limited to 'test/test-libevdev-events.c')
-rw-r--r--test/test-libevdev-events.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test-libevdev-events.c b/test/test-libevdev-events.c
index 44447a0..dd2face 100644
--- a/test/test-libevdev-events.c
+++ b/test/test-libevdev-events.c
@@ -1748,10 +1748,10 @@ START_TEST(test_mt_tracking_id_discard)
abs[5].value = ABS_MT_TRACKING_ID;
abs[5].maximum = 500;
- rc = test_create_abs_device(&uidev, &dev,
- 6, abs,
- EV_SYN, SYN_REPORT,
- -1);
+ test_create_abs_device(&uidev, &dev,
+ 6, abs,
+ EV_SYN, SYN_REPORT,
+ -1);
uinput_device_event(uidev, EV_ABS, ABS_MT_SLOT, 1);
uinput_device_event(uidev, EV_ABS, ABS_MT_TRACKING_ID, 1);
@@ -1831,10 +1831,10 @@ START_TEST(test_mt_tracking_id_discard_neg_1)
abs[5].value = ABS_MT_TRACKING_ID;
abs[5].maximum = 500;
- rc = test_create_abs_device(&uidev, &dev,
- 6, abs,
- EV_SYN, SYN_REPORT,
- -1);
+ test_create_abs_device(&uidev, &dev,
+ 6, abs,
+ EV_SYN, SYN_REPORT,
+ -1);
uinput_device_event(uidev, EV_ABS, ABS_MT_SLOT, 1);
uinput_device_event(uidev, EV_ABS, ABS_MT_TRACKING_ID, 1);
uinput_device_event(uidev, EV_SYN, SYN_REPORT, 0);