Bluetooth: Fix using magic number
Instead of magic number use sizeof(). Change-Id: I6c9db3d7a371312d0aab4fd7dc6a9d0c92449afc Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
a9cd5276ec
commit
d135dcf0e5
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ static int hci_init(void)
|
|||
le_read_buffer_size_complete(rsp);
|
||||
bt_buf_put(rsp);
|
||||
|
||||
buf = bt_hci_cmd_create(BT_HCI_OP_SET_EVENT_MASK, 8);
|
||||
buf = bt_hci_cmd_create(BT_HCI_OP_SET_EVENT_MASK, sizeof(*ev));
|
||||
if (!buf) {
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue