l2cap: don't mangle cmd.len
Subsystems (3)
PATCH 4/4 l2cap: don't mangle cmd.len
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 <[email protected]>
--- net/bluetooth/l2cap.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
net/bluetooth/l2cap.c +0 -1
@@ -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);
Signature · 1 line
1.5.3.GIT
Marcel Holtmann
maintainerHi Al,
Quoted 4 lines
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 <[email protected]>
Signed-off-by Marcel Holtmann <[email protected]>
Regards
Marcel
David Miller
maintainerFrom: Marcel Holtmann <[email protected]>
Date: Fri, 27 Jul 2007 16:41:26 +0200
Quoted 6 lines
Quoted 4 lines
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 <[email protected]>Signed-off-by Marcel Holtmann <[email protected]>
Also applied, thanks a lot.