Skip to contentSkip to conversation

net: bluetooth: remove unneeded variable in l2cap_stream_rx

PATCH In review Mutharaju, Prasanna (P.) 2 participants 2 messages Nov 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: bluetooth: remove unneeded variable in l2cap_stream_rx

From: Prasanna Karthik <[email protected]>

Remove unneeded variable used to store return value. Error reported by coccicheck.

---
 net/bluetooth/l2cap_core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/bluetooth/l2cap_core.c +0 -0
index 7c65ee2..09a1900 100644
@@ -6524,8 +6524,6 @@ static int l2cap_rx(struct l2cap_chan *chan, struct l=

2cap_ctrl *control,
static int l2cap_stream_rx(struct l2cap_chan *chan, struct l2cap_ctrl *con=
trol,
struct sk_buff *skb)
{
- int err =3D 0;
-
BT_DBG("chan %p, control %p, skb %p, state %d", chan, control, skb,
chan->rx_state);
=20
@@ -6556,7 +6554,7 @@ static int l2cap_stream_rx(struct l2cap_chan *chan, s= truct l2cap_ctrl *control,
chan->last_acked_seq =3D control->txseq; chan->expected_tx_seq =3D __next_seq(chan, control->txseq);
=20
- return err;
+ return 0;
}
=20
static int l2cap_data_rcv(struct l2cap_chan *chan, struct sk_buff *skb)
--=20
1.9.1

maintainer
#1 lore raw

Hi Prasanna,

Quoted 7 lines

Remove unneeded variable used to store return value. Error reported by coccicheck.

---
net/bluetooth/l2cap_core.c | 4 +---

1 file changed, 1 insertion(+), 3 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel