Skip to content

Commit

Permalink
[BLUETOOTH] l2cap: don't mangle cmd.len
Browse files Browse the repository at this point in the history
Since nobody uses it after we convert it to host-endian,
no need to do that at all.  At that point l2cap is endian-clean.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Al Viro authored and David S. Miller committed Jul 31, 2007
1 parent 88219a0 commit d838528
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,6 @@ static inline void l2cap_sig_channel(struct l2cap_conn *conn, struct sk_buff *sk
len -= L2CAP_CMD_HDR_SIZE;

cmd_len = le16_to_cpu(cmd.len);
cmd.len = cmd_len;

BT_DBG("code 0x%2.2x len %d id 0x%2.2x", cmd.code, cmd_len, cmd.ident);

Expand Down

0 comments on commit d838528

Please sign in to comment.