diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-17 22:10:18 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-17 22:10:18 +0200 |
commit | 13052c02851b1dfb81c584eee141b83f80c98e0e (patch) | |
tree | c1ede41081a8261d33fa2f2de8968b7453862d45 /udev | |
parent | 372b9bffa7197b345df35f75a577195a19b72eff (diff) |
use 'else if' in epoll event array loop
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udevadm-monitor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index 8fe9e0527c..e1bb6fe18e 100644 --- a/udev/udevadm-monitor.c +++ b/udev/udevadm-monitor.c @@ -266,9 +266,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) continue; print_device(device, "KERNEL", prop); udev_device_unref(device); - } - - if (ev[i].data.fd == fd_udev && ev[i].events & EPOLLIN) { + } else if (ev[i].data.fd == fd_udev && ev[i].events & EPOLLIN) { struct udev_device *device; device = udev_monitor_receive_device(udev_monitor); |