test: fix a scan-build warning (value set but not read)

This test pre-dates litest_assert_empty_queue(), so let's just use that

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-03-22 10:44:17 +10:00
parent a1a419df6c
commit 8a858fc65e

View file

@ -456,7 +456,6 @@ END_TEST
START_TEST(path_add_invalid_path)
{
struct libinput *li;
struct libinput_event *event;
struct libinput_device *device;
li = litest_create_context();
@ -468,8 +467,7 @@ START_TEST(path_add_invalid_path)
libinput_dispatch(li);
while ((event = libinput_get_event(li)))
ck_abort();
litest_assert_empty_queue(li);
libinput_unref(li);
}