nimble/l2cap: Fix use on uninitialized value

X-Original-Commit: 60cf149ff041ffced8b0729928fa17149b2a72a8
This commit is contained in:
Szymon Janc
2017-09-05 09:06:07 +02:00
parent 97c7608882
commit 784b3b01f8
+1 -3
View File
@@ -349,9 +349,7 @@ ble_l2cap_coc_continue_tx(struct ble_l2cap_chan *chan)
/* Prepare packet */
txom = ble_hs_mbuf_l2cap_pkt();
if (!txom) {
BLE_HS_LOG(DEBUG, "Could not prepare l2cap packet len %d, err=%d",
len, rc);
BLE_HS_LOG(DEBUG, "Could not prepare l2cap packet len %d", len);
rc = BLE_HS_ENOMEM;
goto failed;
}