1
0
Fork 0

Bluetooth: Remove unused err var from l2cap_segment_sdu()

Trivial fix, let the code cleaner.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
hifive-unleashed-5.1
Gustavo Padovan 2012-05-29 13:29:17 -03:00 committed by Johan Hedberg
parent ba7aa64fe2
commit f0f6279976
1 changed files with 1 additions and 2 deletions

View File

@ -2068,7 +2068,6 @@ static int l2cap_segment_sdu(struct l2cap_chan *chan,
struct sk_buff *skb;
u16 sdu_len;
size_t pdu_len;
int err = 0;
u8 sar;
BT_DBG("chan %p, msg %p, len %d", chan, msg, (int)len);
@ -2127,7 +2126,7 @@ static int l2cap_segment_sdu(struct l2cap_chan *chan,
}
}
return err;
return 0;
}
int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,