From c776791ed0e70b490d03d4e31dd86383b1e22fe9 Mon Sep 17 00:00:00 2001 From: Jaganath Kanakkassery Date: Wed, 14 Dec 2016 19:41:09 +0530 Subject: [PATCH] Bluetooth: RFCOMM: Rename tmp with next "next" is more relevant since its used to save next pointer Change-Id: Ic0a8d543944681ba4291c5aa06125f565ab6115c Signed-off-by: Jaganath Kanakkassery --- subsys/bluetooth/host/rfcomm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subsys/bluetooth/host/rfcomm.c b/subsys/bluetooth/host/rfcomm.c index bc05528d72c..e108a401914 100644 --- a/subsys/bluetooth/host/rfcomm.c +++ b/subsys/bluetooth/host/rfcomm.c @@ -816,15 +816,15 @@ static void rfcomm_session_disconnect(struct bt_rfcomm_session *session) static void rfcomm_handle_ua(struct bt_rfcomm_session *session, uint8_t dlci) { - struct bt_rfcomm_dlc *dlc, *tmp; + struct bt_rfcomm_dlc *dlc, *next; int err; if (!dlci) { switch (session->state) { case BT_RFCOMM_STATE_CONNECTING: session->state = BT_RFCOMM_STATE_CONNECTED; - for (dlc = session->dlcs; dlc; dlc = tmp) { - tmp = dlc->_next; + for (dlc = session->dlcs; dlc; dlc = next) { + next = dlc->_next; if (dlc->role == BT_RFCOMM_ROLE_INITIATOR && dlc->state == BT_RFCOMM_STATE_INIT) { if (rfcomm_dlc_start(dlc) < 0) { @@ -1171,13 +1171,13 @@ static void rfcomm_encrypt_change(struct bt_l2cap_chan *chan, { struct bt_rfcomm_session *session = RFCOMM_SESSION(chan); struct bt_conn *conn = chan->conn; - struct bt_rfcomm_dlc *dlc, *tmp; + struct bt_rfcomm_dlc *dlc, *next; BT_DBG("session %p status 0x%02x encr 0x%02x", session, hci_status, conn->encrypt); - for (dlc = session->dlcs; dlc; dlc = tmp) { - tmp = dlc->_next; + for (dlc = session->dlcs; dlc; dlc = next) { + next = dlc->_next; if (dlc->state != BT_RFCOMM_STATE_SECURITY_PENDING) { continue;