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 <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
9930c346af
commit
395f250ef8
1 changed files with 4 additions and 4 deletions
|
@ -202,7 +202,7 @@ static void block_report(struct bt_mesh_blob_srv *srv)
|
|||
}
|
||||
}
|
||||
|
||||
bt_mesh_model_send(srv->mod, &ctx, &buf, &report_cb, srv);
|
||||
(void)bt_mesh_model_send(srv->mod, &ctx, &buf, &report_cb, srv);
|
||||
}
|
||||
|
||||
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,
|
|||
|
||||
send:
|
||||
ctx->send_ttl = srv->state.ttl;
|
||||
bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
|
||||
(void)bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
|
||||
}
|
||||
|
||||
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,
|
|||
ctx->send_ttl = srv->state.ttl;
|
||||
}
|
||||
|
||||
bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
|
||||
(void)bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);
|
||||
}
|
||||
|
||||
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
|
|||
ctx->send_ttl = srv->state.ttl;
|
||||
}
|
||||
|
||||
bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL);
|
||||
(void)bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue