]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix broken usage of put_unaligned_le16
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 14 Mar 2012 16:08:46 +0000 (18:08 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:30 +0000 (00:41 -0300)
commit7c54a804273d53af191d7136def44f9dadada290
tree4f6fac717c3e12a54b92196276a308006a33167b
parent64a77dc6d9b07c729d231c3f132ffed25e636f9d
Bluetooth: Fix broken usage of put_unaligned_le16

In case the struct is already __packed, there is no need to use
unaligned access to the data. So just use cpu_to_le16 or
__constant_cpu_to_le16 in these cases.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c