diff options
author | Alfonso Acosta <fons@spotify.com> | 2014-10-07 08:44:10 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 07:56:23 +0200 |
commit | 48ec92fa4f16c0f71e95c31490c03b6c9e0e793b (patch) | |
tree | 4bbf2735a3f49394d1ec890137fb656078e5e077 /net/bluetooth/l2cap_core.c | |
parent | 866665f29382b4f189a51a649661ede9e35e9ace (diff) | |
download | linux-stable-48ec92fa4f16c0f71e95c31490c03b6c9e0e793b.tar.gz linux-stable-48ec92fa4f16c0f71e95c31490c03b6c9e0e793b.tar.bz2 linux-stable-48ec92fa4f16c0f71e95c31490c03b6c9e0e793b.zip |
Bluetooth: Refactor arguments of mgmt_device_connected
The values of a lot of the mgmt_device_connected() parameters come
straight from a hci_conn object. We can simplify the function by passing
the full hci_conn pointer to it.
Signed-off-by: Alfonso Acosta <fons@spotify.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index b6f9777e057d..2ff5591bee97 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -3873,9 +3873,7 @@ static int l2cap_connect_req(struct l2cap_conn *conn, hci_dev_lock(hdev); if (test_bit(HCI_MGMT, &hdev->dev_flags) && !test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &hcon->flags)) - mgmt_device_connected(hdev, &hcon->dst, hcon->type, - hcon->dst_type, 0, NULL, 0, - hcon->dev_class); + mgmt_device_connected(hdev, hcon, 0, NULL, 0); hci_dev_unlock(hdev); l2cap_connect(conn, cmd, data, L2CAP_CONN_RSP, 0); |