projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c72d4b8
)
Bluetooth: Silence sparse warning
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Tue, 20 Mar 2012 08:32:25 +0000
(10:32 +0200)
committer
Gustavo Padovan
<gustavo@padovan.org>
Wed, 9 May 2012 03:41:33 +0000
(
00:41
-0300)
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>
net/bluetooth/mgmt.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index f590dfbe9e07b691b0187cc6c7b87aa1e87a87d0..1d3e3d00d25f987f73ac7f1780cf335f6493a461 100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-443,9
+443,7
@@
static u16 get_uuid16(u8 *uuid128)
return 0;
}
- memcpy(&val, &uuid128[12], 4);
-
- val = le32_to_cpu(val);
+ val = get_unaligned_le32(&uuid128[12]);
if (val > 0xffff)
return 0;