diff options
Diffstat (limited to 'libudev/test-libudev.c')
-rw-r--r-- | libudev/test-libudev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libudev/test-libudev.c b/libudev/test-libudev.c index 9dc86bd918..4192ba14b2 100644 --- a/libudev/test-libudev.c +++ b/libudev/test-libudev.c @@ -286,9 +286,7 @@ static int test_monitor(struct udev *udev) } print_device(device); udev_device_unref(device); - } - - if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) { + } else if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) { printf("exiting loop\n"); goto out; } |