]> git.karo-electronics.de Git - karo-tx-linux.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, 28 Mar 2012 14:39:07 +0000 (11:39 -0300)
commitac83a6da6695c84640285c686178d56e788bd810
tree2d0ea8a94fac664bca4ca2046ee8854c1c5cba4e
parent2f7905e7aa8d5273a64602c6d3eca297a2457c86
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