summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-12 16:25:33 +0100
committerThomas Haller <thaller@redhat.com>2016-02-16 11:35:50 +0100
commitb5df5476e23f2cdd0b9bfb9af892d78b495ec19c (patch)
tree7a3f221ade627cbbe24e93d5c5101b9003aef5f8
parentc656b466b1d50e9a4527420e7a05bc6e194c711b (diff)
downloadNetworkManager-b5df5476e23f2cdd0b9bfb9af892d78b495ec19c.tar.gz
platform: don't return number of messages from event_handler_recvmsgs()
The value is not used by the callers. Also, with @handle_events set to false, it is not clear what the value really means because we skip over errors.
-rw-r--r--src/platform/nm-linux-platform.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index 734f0ffac1..9ce4422ab6 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -5556,7 +5556,7 @@ event_handler_recvmsgs (NMPlatform *platform, gboolean handle_events)
{
NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
struct nl_sock *sk = priv->nlh;
- int n, err = 0, multipart = 0, interrupted = 0, nrecv = 0;
+ int n, err = 0, multipart = 0, interrupted = 0;
struct nlmsghdr *hdr;
WaitForNlResponseResult seq_result;
@@ -5612,7 +5612,6 @@ continue_reading:
nlmsg_set_proto (msg, NETLINK_ROUTE);
nlmsg_set_src (msg, &nla);
- nrecv++;
if (!creds || creds->pid) {
if (creds)
@@ -5720,10 +5719,6 @@ stop:
out:
if (interrupted)
err = -NLE_DUMP_INTR;
-
- if (!err)
- err = nrecv;
-
return err;
}