Bluetooth: Remove unnecessary NULL check

Change-Id: I6ec661cdd64c3c22d85f84c6246e4dcd5db71815
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-12-13 19:50:07 +02:00
commit bc8ec12977

View file

@ -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);