diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-05-29 12:29:17 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:15 -0400 |
commit | f0f6279976c8f0768468293546785c18894a704c (patch) | |
tree | 0e3cbb109f10038629ad81fb9b0d1a43fc566e05 /net | |
parent | ba7aa64fe24d293bd433b82c30d505ab8611673f (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 136c2af6684b..9750204011c6 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -2068,7 +2068,6 @@ static int l2cap_segment_sdu(struct l2cap_chan *chan, | |||
2068 | struct sk_buff *skb; | 2068 | struct sk_buff *skb; |
2069 | u16 sdu_len; | 2069 | u16 sdu_len; |
2070 | size_t pdu_len; | 2070 | size_t pdu_len; |
2071 | int err = 0; | ||
2072 | u8 sar; | 2071 | u8 sar; |
2073 | 2072 | ||
2074 | BT_DBG("chan %p, msg %p, len %d", chan, msg, (int)len); | 2073 | 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, | |||
2127 | } | 2126 | } |
2128 | } | 2127 | } |
2129 | 2128 | ||
2130 | return err; | 2129 | return 0; |
2131 | } | 2130 | } |
2132 | 2131 | ||
2133 | int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len, | 2132 | int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len, |