Skip to content

Commit 395f250

Browse files
PavelVPVnashif
authored andcommitted
Bluetooth: Mesh: Check return value in blob server
Ignore return value of bt_mesh_model_send(). Coverity-CID: 316126, GitHub issue #58506 Coverity-CID: 316272, GitHub issue #58517 Coverity-CID: 316430, GitHub issue #58533 Coverity-CID: 316567, GitHub issue #58549 Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 9930c34 commit 395f250

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subsys/bluetooth/mesh/blob_srv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void block_report(struct bt_mesh_blob_srv *srv)
202202
}
203203
}
204204

205-
bt_mesh_model_send(srv->mod, &ctx, &buf, &report_cb, srv);
205+
(void)bt_mesh_model_send(srv->mod, &ctx, &buf, &report_cb, srv);
206206
}
207207

208208
static void phase_set(struct bt_mesh_blob_srv *srv,
@@ -314,7 +314,7 @@ static void xfer_status_rsp(struct bt_mesh_blob_srv *srv,
314314

315315
send:
316316
ctx->send_ttl = srv->state.ttl;
317-
bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
317+
(void)bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
318318
}
319319

320320
static void block_status_rsp(struct bt_mesh_blob_srv *srv,
@@ -379,7 +379,7 @@ static void block_status_rsp(struct bt_mesh_blob_srv *srv,
379379
ctx->send_ttl = srv->state.ttl;
380380
}
381381

382-
bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
382+
(void)bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
383383
}
384384

385385
static int handle_xfer_get(struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx,
@@ -789,7 +789,7 @@ static int handle_info_get(struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ct
789789
ctx->send_ttl = srv->state.ttl;
790790
}
791791

792-
bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL);
792+
(void)bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL);
793793

794794
return 0;
795795
}

0 commit comments

Comments
 (0)