From bc8ec12977f5d358c309867829aa5a6ece9bb1f1 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 13 Dec 2016 19:50:07 +0200 Subject: [PATCH] Bluetooth: Remove unnecessary NULL check Change-Id: I6ec661cdd64c3c22d85f84c6246e4dcd5db71815 Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/hci_core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 989abe7b576..319a2c5e33e 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -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);