net: bluetooth: remove unneeded variable in l2cap_stream_rx
Subsystems (2)
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
@@ -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
Marcel Holtmann
maintainerHi Prasanna,
Quoted 7 lines
Remove unneeded variable used to store return value. Error reported by coccicheck.
Signed-off-by Prasanna Karthik <[email protected]>---
net/bluetooth/l2cap_core.c| 4 +---1 file changed, 1 insertion(+), 3 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel