提交 3e9fb6d8 编写于 作者: A Andrei Emeltchenko 提交者: 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: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: NGustavo Padovan <gustavo@padovan.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册