diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-23 14:42:36 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-23 14:42:36 +0100 |
commit | 8e12396b74c85972558388652e802a54c799363b (patch) | |
tree | aa352cb0feaf0262c1303d0d6897aae9ba76531e /src/devices/bluetooth/nm-device-bt.c | |
parent | 04c8517ea271c76be09288ebcd7a48515f96236f (diff) | |
download | NetworkManager-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.c | 5 |
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)); } } |