Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256388
b: refs/heads/master
c: 774e565
h: refs/heads/master
v: v3
  • Loading branch information
Mat Martineau authored and Gustavo F. Padovan committed Jun 30, 2011
1 parent 5732348 commit 0fe484e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a7b1501182477299e678b787e32fca5844c7ea1
refs/heads/master: 774e5651460ee7c688914fd76b6caa1675de355c
12 changes: 6 additions & 6 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,18 @@ static u16 l2cap_alloc_cid(struct l2cap_conn *conn)

static void l2cap_set_timer(struct l2cap_chan *chan, struct timer_list *timer, long timeout)
{
BT_DBG("chan %p state %d timeout %ld", chan->sk, chan->state, timeout);
BT_DBG("chan %p state %d timeout %ld", chan->sk, chan->state, timeout);

if (!mod_timer(timer, jiffies + timeout))
chan_hold(chan);
if (!mod_timer(timer, jiffies + timeout))
chan_hold(chan);
}

static void l2cap_clear_timer(struct l2cap_chan *chan, struct timer_list *timer)
{
BT_DBG("chan %p state %d", chan, chan->state);
BT_DBG("chan %p state %d", chan, chan->state);

if (timer_pending(timer) && del_timer(timer))
chan_put(chan);
if (timer_pending(timer) && del_timer(timer))
chan_put(chan);
}

static void l2cap_state_change(struct l2cap_chan *chan, int state)
Expand Down

0 comments on commit 0fe484e

Please sign in to comment.