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 <jaganathx.kanakkassery@intel.com>
This commit is contained in:
parent
3ec7df34c1
commit
c776791ed0
1 changed files with 6 additions and 6 deletions
|
@ -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)
|
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;
|
int err;
|
||||||
|
|
||||||
if (!dlci) {
|
if (!dlci) {
|
||||||
switch (session->state) {
|
switch (session->state) {
|
||||||
case BT_RFCOMM_STATE_CONNECTING:
|
case BT_RFCOMM_STATE_CONNECTING:
|
||||||
session->state = BT_RFCOMM_STATE_CONNECTED;
|
session->state = BT_RFCOMM_STATE_CONNECTED;
|
||||||
for (dlc = session->dlcs; dlc; dlc = tmp) {
|
for (dlc = session->dlcs; dlc; dlc = next) {
|
||||||
tmp = dlc->_next;
|
next = dlc->_next;
|
||||||
if (dlc->role == BT_RFCOMM_ROLE_INITIATOR &&
|
if (dlc->role == BT_RFCOMM_ROLE_INITIATOR &&
|
||||||
dlc->state == BT_RFCOMM_STATE_INIT) {
|
dlc->state == BT_RFCOMM_STATE_INIT) {
|
||||||
if (rfcomm_dlc_start(dlc) < 0) {
|
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_rfcomm_session *session = RFCOMM_SESSION(chan);
|
||||||
struct bt_conn *conn = chan->conn;
|
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,
|
BT_DBG("session %p status 0x%02x encr 0x%02x", session, hci_status,
|
||||||
conn->encrypt);
|
conn->encrypt);
|
||||||
|
|
||||||
for (dlc = session->dlcs; dlc; dlc = tmp) {
|
for (dlc = session->dlcs; dlc; dlc = next) {
|
||||||
tmp = dlc->_next;
|
next = dlc->_next;
|
||||||
|
|
||||||
if (dlc->state != BT_RFCOMM_STATE_SECURITY_PENDING) {
|
if (dlc->state != BT_RFCOMM_STATE_SECURITY_PENDING) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue