mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 01:20:12 +01:00
dns/systemd: remove unused device lookup in add_interface_configuration()
(cherry picked from commit 1c9285b06e)
This commit is contained in:
parent
8887970713
commit
08d8b38a81
1 changed files with 0 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue