Bluetooth: trivial: Correct types
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 12 Mar 2012 13:59:31 +0000 (15:59 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:31 +0000 (00:41 -0300)
Fix sparse warnigns below:
...
net/bluetooth/hci_sysfs.c:458:33: warning: cast to restricted __be32
net/bluetooth/hci_sysfs.c:458:47: warning: cast to restricted __be16
...

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_sysfs.c

index 60b93d8219ef00216dd7a68f97e4da36727ac766..937f3187eafa51bbb540db6352535cfb4a30485e 100644 (file)
@@ -444,8 +444,8 @@ static const struct file_operations blacklist_fops = {
 
 static void print_bt_uuid(struct seq_file *f, u8 *uuid)
 {
-       u32 data0, data4;
-       u16 data1, data2, data3, data5;
+       __be32 data0, data4;
+       __be16 data1, data2, data3, data5;
 
        memcpy(&data0, &uuid[0], 4);
        memcpy(&data1, &uuid[4], 2);