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:12:49 +0200
commit1c9285b06e166a86bf750c3302958f49b9fb9f76 (patch)
tree7d1b4403d6c112d25e4f11b68606cbae792d2200
parentc818e46d48b9ec02ba2aaedf6981b5a54eceb648 (diff)
downloadNetworkManager-1c9285b06e166a86bf750c3302958f49b9fb9f76.tar.gz
dns/systemd: remove unused device lookup in add_interface_configuration()
-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) {