diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-01-19 19:25:45 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-01-20 18:55:55 -0500 |
commit | a0db8e46e574a5f8e226f4202c5d64eb05d14811 (patch) | |
tree | 87788c0ac4e9922759d9799fda8402983aee48d3 /src/network | |
parent | dbb471ac891332a60aeb161154f4607135d26dcd (diff) |
networkd: use (void) to mark ignored values
Null link or netdev are handled fine.
CID #1338084.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-manager.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index aeb6e34c52..24f5304cb0 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -659,15 +659,16 @@ static int manager_rtnl_process_link(sd_netlink *rtnl, sd_netlink_message *messa } else if (ifindex <= 0) { log_warning("rtnl: received link message with invalid ifindex: %d", ifindex); return 0; - } else - link_get(m, ifindex, &link); + } r = sd_netlink_message_read_string(message, IFLA_IFNAME, &name); if (r < 0) { log_warning_errno(r, "rtnl: Received link message without ifname: %m"); return 0; - } else - netdev_get(m, name, &netdev); + } + + (void) link_get(m, ifindex, &link); + (void) netdev_get(m, name, &netdev); switch (type) { case RTM_NEWLINK: |