mesh: don't free mbuf in bt_mesh_adv_create_from_pool

Coverity caught that freeing of buf in this function was unreachable;
it's correct, as this buf shouldn't be freed at all.
This commit is contained in:
Krzysztof Kopyściński
2021-03-11 12:17:02 +01:00
committed by Krzysztof Kopyściński
parent 97482d497d
commit 741651b8a5
-1
View File
@@ -232,7 +232,6 @@ struct os_mbuf *bt_mesh_adv_create_from_pool(struct os_mbuf_pool *pool,
adv->ref_cnt = 1;
ble_npl_event_set_arg(&adv->ev, buf);
os_mbuf_free_chain(buf);
return buf;
}