Bluetooth: Fix broken usage of get_unaligned_le16
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 13 Mar 2012 03:31:08 +0000 (20:31 -0700)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:32 +0000 (00:41 -0300)
commit1f350c8724881fe6b1be9aa68d1e49508a6f8ab9
tree20d6af5d3e05bcb8c3a15d57010cdf5093c638ff
parent1036b89042df96e71c0cb941be212f8053ecccc0
Bluetooth: Fix broken usage of get_unaligned_le16

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

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