All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: bluetooth: remove unneeded variable in l2cap_stream_rx
@ 2015-11-19 12:05 Mutharaju, Prasanna (P.)
  2015-11-19 13:20 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Mutharaju, Prasanna (P.) @ 2015-11-19 12:05 UTC (permalink / raw)
  To: marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com,
	davem@davemloft.net
  Cc: linux-bluetooth@vger.kernel.org

From: Prasanna Karthik <mkarthi3@visteon.com>

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

Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com>
---
 net/bluetooth/l2cap_core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 7c65ee2..09a1900 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-19 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19 12:05 [PATCH] net: bluetooth: remove unneeded variable in l2cap_stream_rx Mutharaju, Prasanna (P.)
2015-11-19 13:20 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.