Commit 3e9fb6d8 authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Gustavo Padovan

Bluetooth: Silence sparse warning

Silence sparse warning shown below:
...
net/bluetooth/mgmt.c:448:15: warning: cast to restricted __le32
...
Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: default avatarGustavo Padovan <gustavo@padovan.org>
parent c72d4b8a
...@@ -443,9 +443,7 @@ static u16 get_uuid16(u8 *uuid128) ...@@ -443,9 +443,7 @@ static u16 get_uuid16(u8 *uuid128)
return 0; return 0;
} }
memcpy(&val, &uuid128[12], 4); val = get_unaligned_le32(&uuid128[12]);
val = le32_to_cpu(val);
if (val > 0xffff) if (val > 0xffff)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment