diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-02-11 21:33:15 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-02-12 13:46:12 +0100 |
commit | b3401bf92134c706f54a193ffe775a5ecc3c8cb4 (patch) | |
tree | 276b956a4bb3ad17dd6a31a7d658b8fcf94f34c8 /src/devices/adsl | |
parent | ac977156885a31c7e775e7d7376c23d0728fcb5d (diff) | |
download | NetworkManager-b3401bf92134c706f54a193ffe775a5ecc3c8cb4.tar.gz |
device: add nm_device_get_applied_setting()
Diffstat (limited to 'src/devices/adsl')
-rw-r--r-- | src/devices/adsl/nm-device-adsl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/devices/adsl/nm-device-adsl.c b/src/devices/adsl/nm-device-adsl.c index dd9a1203c1..57afcf463d 100644 --- a/src/devices/adsl/nm-device-adsl.c +++ b/src/devices/adsl/nm-device-adsl.c @@ -449,7 +449,6 @@ act_stage3_ip4_config_start (NMDevice *device, { NMDeviceAdsl *self = NM_DEVICE_ADSL (device); NMDeviceAdslPrivate *priv = NM_DEVICE_ADSL_GET_PRIVATE (self); - NMConnection *connection; NMSettingAdsl *s_adsl; NMActRequest *req; GError *err = NULL; @@ -458,11 +457,7 @@ act_stage3_ip4_config_start (NMDevice *device, req = nm_device_get_act_request (device); g_assert (req); - - connection = nm_act_request_get_applied_connection (req); - g_assert (req); - - s_adsl = nm_connection_get_setting_adsl (connection); + s_adsl = (NMSettingAdsl *) nm_device_get_applied_setting (device, NM_TYPE_SETTING_ADSL); g_assert (s_adsl); /* PPPoE uses the NAS interface, not the ATM interface */ |