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)
commiteb55ef07a211eea95088eb0e6cdbd53cd65d9755
tree4f6fac717c3e12a54b92196276a308006a33167b
parentcdbaccca733c9dde3faf150150102dade311c91f
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