From 8d16f29b23b3852e946325e21767e9aa9abaac60 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 14 Sep 2020 16:18:02 +0200 Subject: [PATCH] libsystemd: drop a redundant if statement --- src/libsystemd/sd-netlink/sd-netlink.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libsystemd/sd-netlink/sd-netlink.c b/src/libsystemd/sd-netlink/sd-netlink.c index 91670ee324e..ff0886d40b8 100644 --- a/src/libsystemd/sd-netlink/sd-netlink.c +++ b/src/libsystemd/sd-netlink/sd-netlink.c @@ -495,10 +495,8 @@ static int rtnl_poll(sd_netlink *rtnl, bool need_more, uint64_t timeout_usec) { m = timeout_usec; r = fd_wait_for_event(rtnl->fd, e, m); - if (r < 0) + if (r <= 0) return r; - if (r == 0) - return 0; return 1; }