Skip to content

Commit

Permalink
bluetooth: Fix warnings in l2cap_core.c
Browse files Browse the repository at this point in the history
net/bluetooth/l2cap_core.c: In function ‘l2cap_recv_frame’:
net/bluetooth/l2cap_core.c:3758:15: warning: ‘sk’ may be used uninitialized in this function
net/bluetooth/l2cap_core.c:3758:15: note: ‘sk’ was declared here
net/bluetooth/l2cap_core.c:3791:15: warning: ‘sk’ may be used uninitialized in this function
net/bluetooth/l2cap_core.c:3791:15: note: ‘sk’ was declared here

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed May 17, 2011
1 parent d46d4d6 commit 6dcae1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk

static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, struct sk_buff *skb)
{
struct sock *sk;
struct sock *sk = NULL;
struct l2cap_chan *chan;

chan = l2cap_global_chan_by_psm(0, psm, conn->src);
Expand Down Expand Up @@ -3788,7 +3788,7 @@ static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, str

static inline int l2cap_att_channel(struct l2cap_conn *conn, __le16 cid, struct sk_buff *skb)
{
struct sock *sk;
struct sock *sk = NULL;
struct l2cap_chan *chan;

chan = l2cap_global_chan_by_scid(0, cid, conn->src);
Expand Down

0 comments on commit 6dcae1e

Please sign in to comment.