Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279265
b: refs/heads/master
c: eb403a1
h: refs/heads/master
i:
  279263: 2472de3
v: v3
  • Loading branch information
Gustavo F. Padovan committed Dec 18, 2011
1 parent 958e77d commit 97ace25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: aa2ac881ba1e4e9f878be2ece80001ae8563955c
refs/heads/master: eb403a1b7eea9d736c55f78407dccb42b72757a4
12 changes: 1 addition & 11 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1960,8 +1960,6 @@ static void l2cap_ack_timeout(struct work_struct *work)

static inline void l2cap_ertm_init(struct l2cap_chan *chan)
{
struct sock *sk = chan->sk;

chan->expected_ack_seq = 0;
chan->unacked_frames = 0;
chan->buffer_seq = 0;
Expand All @@ -1975,9 +1973,6 @@ static inline void l2cap_ertm_init(struct l2cap_chan *chan)
skb_queue_head_init(&chan->srej_q);

INIT_LIST_HEAD(&chan->srej_l);


sk->sk_backlog_rcv = l2cap_ertm_data_rcv;
}

static inline __u8 l2cap_select_mode(__u8 mode, __u16 remote_feat_mask)
Expand Down Expand Up @@ -4203,12 +4198,7 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk
break;

case L2CAP_MODE_ERTM:
if (!sock_owned_by_user(sk)) {
l2cap_ertm_data_rcv(sk, skb);
} else {
if (sk_add_backlog(sk, skb))
goto drop;
}
l2cap_ertm_data_rcv(sk, skb);

goto done;

Expand Down

0 comments on commit 97ace25

Please sign in to comment.