summaryrefslogtreecommitdiff
path: root/src/devices/bluetooth/nm-device-bt.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-02-23 14:42:36 +0100
committerThomas Haller <thaller@redhat.com>2017-02-23 14:42:36 +0100
commit8e12396b74c85972558388652e802a54c799363b (patch)
treeaa352cb0feaf0262c1303d0d6897aae9ba76531e /src/devices/bluetooth/nm-device-bt.c
parent04c8517ea271c76be09288ebcd7a48515f96236f (diff)
downloadNetworkManager-8e12396b74c85972558388652e802a54c799363b.tar.gz
modem: remove unused reason argument from nm_modem_device_state_changed()
The reason has pecular meanings during a device state change. Let's remove the unused reason argument to reduce the noise.
Diffstat (limited to 'src/devices/bluetooth/nm-device-bt.c')
-rw-r--r--src/devices/bluetooth/nm-device-bt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c
index aed3c3c330..717af06b1c 100644
--- a/src/devices/bluetooth/nm-device-bt.c
+++ b/src/devices/bluetooth/nm-device-bt.c
@@ -508,7 +508,7 @@ device_state_changed (NMDevice *device,
NMDeviceBtPrivate *priv = NM_DEVICE_BT_GET_PRIVATE ((NMDeviceBt *) device);
if (priv->modem)
- nm_modem_device_state_changed (priv->modem, new_state, old_state, reason);
+ nm_modem_device_state_changed (priv->modem, new_state, old_state);
/* Need to recheck available connections whenever MM appears or disappears,
* since the device could be both DUN and NAP capable and thus may not
@@ -925,8 +925,7 @@ deactivate (NMDevice *device)
*/
nm_modem_device_state_changed (priv->modem,
NM_DEVICE_STATE_DISCONNECTED,
- NM_DEVICE_STATE_ACTIVATED,
- NM_DEVICE_STATE_REASON_USER_REQUESTED);
+ NM_DEVICE_STATE_ACTIVATED);
modem_cleanup (NM_DEVICE_BT (device));
}
}