Bluetooth: Remove unnecessary NULL check
Change-Id: I6ec661cdd64c3c22d85f84c6246e4dcd5db71815 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
758e220cdc
commit
bc8ec12977
1 changed files with 0 additions and 4 deletions
|
@ -202,10 +202,6 @@ struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len)
|
|||
BT_DBG("opcode 0x%04x param_len %u", opcode, param_len);
|
||||
|
||||
buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER);
|
||||
if (!buf) {
|
||||
BT_ERR("Cannot get free buffer");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BT_DBG("buf %p", buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue