diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-03-20 04:32:25 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-08 23:41:33 -0400 |
commit | 3e9fb6d87ee543b10bcf245d4a5c6aa1ab0ac2ab (patch) | |
tree | 16e2de70f6628ed19facb260c2f205571c8181c4 /net/bluetooth/mgmt.c | |
parent | c72d4b8afa8002cd6f64225954bee78296321e7e (diff) |
Bluetooth: Silence sparse warning
Silence sparse warning shown below:
...
net/bluetooth/mgmt.c:448:15: warning: cast to restricted __le32
...
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index f590dfbe9e07..1d3e3d00d25f 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -443,9 +443,7 @@ static u16 get_uuid16(u8 *uuid128) | |||
443 | return 0; | 443 | return 0; |
444 | } | 444 | } |
445 | 445 | ||
446 | memcpy(&val, &uuid128[12], 4); | 446 | val = get_unaligned_le32(&uuid128[12]); |
447 | |||
448 | val = le32_to_cpu(val); | ||
449 | if (val > 0xffff) | 447 | if (val > 0xffff) |
450 | return 0; | 448 | return 0; |
451 | 449 | ||