coccicnelle: Ignore return of memset
The return of memset is never checked. This patch explicitly ignore the return to avoid MISRA-C violations. The only directory excluded directory was ext/* since it contains only imported code. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
5884c7f54b
commit
da49f2e440
220 changed files with 577 additions and 550 deletions
|
@ -94,8 +94,8 @@ static int flash_block_write(struct flash_img_context *ctx, off_t offset,
|
|||
|
||||
if (finished && ctx->buf_bytes > 0) {
|
||||
/* pad the rest of ctx->buf and write it out */
|
||||
memset(ctx->buf + ctx->buf_bytes, 0xFF,
|
||||
CONFIG_IMG_BLOCK_BUF_SIZE - ctx->buf_bytes);
|
||||
(void)memset(ctx->buf + ctx->buf_bytes, 0xFF,
|
||||
CONFIG_IMG_BLOCK_BUF_SIZE - ctx->buf_bytes);
|
||||
|
||||
flash_write_protection_set(ctx->dev, false);
|
||||
rc = flash_write(ctx->dev, offset + ctx->bytes_written,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue