mesh: Fix coverity warning with unchecked error return

This fixes Zephyr's Coverity CID 182769.

X-Original-Commit: 584c807f5e25a9c325d90ad6643628198785128d
This commit is contained in:
Michał Narajowski
2018-02-27 09:56:07 +01:00
parent 417418eaac
commit 703c021133
+1 -2
View File
@@ -169,9 +169,8 @@ static int unprovisioned_beacon_send(void)
net_buf_add_u8(buf, BEACON_TYPE_UNPROVISIONED);
net_buf_add_mem(buf, prov->uuid, 16);
if (prov->uri) {
if (prov->uri && bt_mesh_s1(prov->uri, uri_hash) == 0) {
oob_info = prov->oob_info | BT_MESH_PROV_OOB_URI;
bt_mesh_s1(prov->uri, uri_hash);
} else {
oob_info = prov->oob_info;
}