summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-06-14 00:40:13 +0200
committerThomas Haller <thaller@redhat.com>2017-06-19 15:15:49 +0200
commit08d8b38a81a707e92692425ece5a8acd798aecdf (patch)
treeda3455238d9114392a641d7515c3718f3bd8089f
parent8887970713bde9a8fcf973332c2151c42ebfda7b (diff)
downloadNetworkManager-08d8b38a81a707e92692425ece5a8acd798aecdf.tar.gz
dns/systemd: remove unused device lookup in add_interface_configuration()
(cherry picked from commit 1c9285b06e166a86bf750c3302958f49b9fb9f76)
-rw-r--r--src/dns/nm-dns-systemd-resolved.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/dns/nm-dns-systemd-resolved.c b/src/dns/nm-dns-systemd-resolved.c
index ed165618ec..098897660d 100644
--- a/src/dns/nm-dns-systemd-resolved.c
+++ b/src/dns/nm-dns-systemd-resolved.c
@@ -107,7 +107,6 @@ add_interface_configuration (NMDnsSystemdResolved *self,
int i;
InterfaceConfig *ic = NULL;
int ifindex;
- NMDevice *device;
if (NM_IS_IP4_CONFIG (data->config))
ifindex = nm_ip4_config_get_ifindex (data->config);
@@ -116,8 +115,6 @@ add_interface_configuration (NMDnsSystemdResolved *self,
else
g_return_if_reached ();
- device = nm_manager_get_device_by_ifindex (nm_manager_get (), ifindex);
-
for (i = 0; i < interfaces->len; i++) {
InterfaceConfig *tic = &g_array_index (interfaces, InterfaceConfig, i);
if (ifindex == tic->ifindex) {