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 <rcn@igalia.com>
diff --git a/subsys/bluetooth/host/conn.c b/subsys/bluetooth/host/conn.c
index 8d9e12c..e80a48f 100644
--- a/subsys/bluetooth/host/conn.c
+++ b/subsys/bluetooth/host/conn.c
@@ -1515,7 +1515,6 @@
conn_tx_is_pending = k_work_is_pending(&conn->tx_complete_work);
#endif
old = atomic_dec(&conn->ref);
- conn = NULL;
LOG_DBG("handle %u ref %ld -> %ld", conn_handle, old, (old - 1));