diff options
author | Pavel Šimerda <psimerda@redhat.com> | 2013-10-20 18:22:39 +0200 |
---|---|---|
committer | Pavel Šimerda <psimerda@redhat.com> | 2013-10-20 18:24:26 +0200 |
commit | 8e17fc2aa46d3c2f06c788ca092d117913688b74 (patch) | |
tree | 617cc13c3a8eb19d594ac54e5a8c972382643560 | |
parent | f7ff04281914c0728d0e91d081a59c32418e56ab (diff) | |
download | NetworkManager-8e17fc2aa46d3c2f06c788ca092d117913688b74.tar.gz |
device: remove unused 'dev_state' variable
Reported-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | src/devices/nm-device.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 84a95da533..d0f669cec3 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -2464,7 +2464,6 @@ dhcp4_state_changed (NMDHCPClient *client, { NMDevice *device = NM_DEVICE (user_data); NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (device); - NMDeviceState dev_state; NMIP4Config *config; g_return_if_fail (nm_dhcp_client_get_ipv6 (client) == FALSE); @@ -2472,8 +2471,6 @@ dhcp4_state_changed (NMDHCPClient *client, nm_log_dbg (LOGD_DHCP4, "(%s): new DHCPv4 client state %d", nm_device_get_iface (device), state); - dev_state = nm_device_get_state (device); - switch (state) { case DHC_BOUND4: /* lease obtained */ case DHC_RENEW4: /* lease renewed */ @@ -2864,15 +2861,12 @@ dhcp6_state_changed (NMDHCPClient *client, { NMDevice *device = NM_DEVICE (user_data); NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (device); - NMDeviceState dev_state; g_return_if_fail (nm_dhcp_client_get_ipv6 (client) == TRUE); nm_log_dbg (LOGD_DHCP6, "(%s): new DHCPv6 client state %d", nm_device_get_iface (device), state); - dev_state = nm_device_get_state (device); - switch (state) { case DHC_BOUND6: case DHC_RENEW6: /* lease renewed */ |