From: Frantisek Sumsal Date: Mon, 14 Sep 2020 14:18:02 +0000 (+0200) Subject: libsystemd: drop a redundant if statement X-Git-Tag: v247-rc1~237^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d16f29b23b3852e946325e21767e9aa9abaac60;p=thirdparty%2Fsystemd.git libsystemd: drop a redundant if statement --- 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; }