Skip to content

Commit 61e177f

Browse files
r-c-nkartben
authored andcommitted
Bluetooth: Host: remove unnecessary assignment in bt_conn_unref()
This local pointer assignment does nothing and readers may get a wrong interpretation of the intention of the function. Signed-off-by: Ricardo Cañuelo Navarro <[email protected]>
1 parent dc842e1 commit 61e177f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

subsys/bluetooth/host/conn.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,6 @@ void bt_conn_unref(struct bt_conn *conn)
15151515
conn_tx_is_pending = k_work_is_pending(&conn->tx_complete_work);
15161516
#endif
15171517
old = atomic_dec(&conn->ref);
1518-
conn = NULL;
15191518

15201519
LOG_DBG("handle %u ref %ld -> %ld", conn_handle, old, (old - 1));
15211520

0 commit comments

Comments
 (0)