aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_sysfs.c')
-rw-r--r--net/bluetooth/hci_sysfs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index a18871e01582..844ca5f1b2d4 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -311,7 +311,6 @@ static void add_conn(struct work_struct *work)
311void hci_conn_add_sysfs(struct hci_conn *conn) 311void hci_conn_add_sysfs(struct hci_conn *conn)
312{ 312{
313 struct hci_dev *hdev = conn->hdev; 313 struct hci_dev *hdev = conn->hdev;
314 bdaddr_t *ba = &conn->dst;
315 314
316 BT_DBG("conn %p", conn); 315 BT_DBG("conn %p", conn);
317 316
@@ -320,11 +319,8 @@ void hci_conn_add_sysfs(struct hci_conn *conn)
320 319
321 conn->dev.release = bt_release; 320 conn->dev.release = bt_release;
322 321
323 snprintf(conn->dev.bus_id, BUS_ID_SIZE, 322 snprintf(conn->dev.bus_id, BUS_ID_SIZE, "%s:%d",
324 "%s%2.2X%2.2X%2.2X%2.2X%2.2X%2.2X", 323 hdev->name, conn->handle);
325 conn->type == ACL_LINK ? "acl" : "sco",
326 ba->b[5], ba->b[4], ba->b[3],
327 ba->b[2], ba->b[1], ba->b[0]);
328 324
329 dev_set_drvdata(&conn->dev, conn); 325 dev_set_drvdata(&conn->dev, conn);
330 326