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
|
@ -296,7 +296,7 @@ fcb_offset_last_n(struct fcb *fcb, u8_t entries,
|
|||
}
|
||||
|
||||
i = 0;
|
||||
memset(&loc, 0, sizeof(loc));
|
||||
(void)memset(&loc, 0, sizeof(loc));
|
||||
while (!fcb_getnext(fcb, &loc)) {
|
||||
if (i == 0) {
|
||||
/* Start from the beginning of fcb entries */
|
||||
|
|
|
@ -119,7 +119,7 @@ fcb_append_finish(struct fcb *fcb, struct fcb_entry *loc)
|
|||
u8_t crc8[fcb->f_align];
|
||||
off_t off;
|
||||
|
||||
memset(crc8, 0xFF, sizeof(crc8));
|
||||
(void)memset(crc8, 0xFF, sizeof(crc8));
|
||||
|
||||
rc = fcb_elem_crc8(fcb, loc, &crc8[0]);
|
||||
if (rc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue