Bluetooth: Remove useless sys_cpu_to_le16
for uint8_t
type
The target variable is a `uint8_t`. It is not reasonable to pass a value with `uint16_t` in little-endian format. Remove `sys_cpu_to_le16`, and pass the value directly. Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
This commit is contained in:
parent
ea7fb71a4b
commit
672d367642
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ void bt_hci_host_num_completed_packets(struct net_buf *buf)
|
|||
}
|
||||
|
||||
cp = net_buf_add(buf, sizeof(*cp));
|
||||
cp->num_handles = sys_cpu_to_le16(1);
|
||||
cp->num_handles = 1;
|
||||
|
||||
hc = net_buf_add(buf, sizeof(*hc));
|
||||
hc->handle = sys_cpu_to_le16(handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue