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:
Flavio Ceolin 2018-09-11 19:09:03 -07:00 committed by Anas Nashif
commit da49f2e440
220 changed files with 577 additions and 550 deletions

View file

@ -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 */

View file

@ -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) {