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
|
@ -210,7 +210,7 @@ static int boot_flag_write(int flag, u32_t bank_offs)
|
|||
return rc;
|
||||
}
|
||||
|
||||
memset(buf, BOOT_FLAG_UNSET, sizeof(buf));
|
||||
(void)memset(buf, BOOT_FLAG_UNSET, sizeof(buf));
|
||||
buf[0] = BOOT_FLAG_SET;
|
||||
|
||||
rc = boot_flash_write(offs, buf, sizeof(buf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue