summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-29 01:50:07 +0100
committerTom Gundersen <teg@jklm.no>2014-12-29 01:59:49 +0100
commitf55dc7c96ef6a8db32451a0d5f708090591a9141 (patch)
tree7404a52152884d918df75d0ebad3daa029be5b65
parentc7460cce79fd358f2745bd390bd2e7ded450ee62 (diff)
sd-rtnl: rtnl_poll - fix typo
This caused rtnl_poll to always return true immediately in sd_rtnl_call().
-rw-r--r--src/libsystemd/sd-rtnl/sd-rtnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-rtnl/sd-rtnl.c b/src/libsystemd/sd-rtnl/sd-rtnl.c
index abb011ea24..ae3573937c 100644
--- a/src/libsystemd/sd-rtnl/sd-rtnl.c
+++ b/src/libsystemd/sd-rtnl/sd-rtnl.c
@@ -489,7 +489,7 @@ static int rtnl_poll(sd_rtnl *rtnl, bool need_more, uint64_t timeout_usec) {
if (need_more)
/* Caller wants more data, and doesn't care about
* what's been read or any other timeouts. */
- return e |= POLLIN;
+ e |= POLLIN;
else {
usec_t until;
/* Caller wants to process if there is something to