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
|
@ -106,7 +106,7 @@ int open(const char *name, int flags)
|
|||
errno = ENFILE;
|
||||
return -1;
|
||||
}
|
||||
memset(ptr, 0, sizeof(struct fs_file_t));
|
||||
(void)memset(ptr, 0, sizeof(struct fs_file_t));
|
||||
|
||||
rc = fs_open(ptr, name);
|
||||
if (rc < 0) {
|
||||
|
@ -233,7 +233,7 @@ DIR *opendir(const char *dirname)
|
|||
errno = EMFILE;
|
||||
return NULL;
|
||||
}
|
||||
memset(ptr, 0, sizeof(struct fs_dir_t));
|
||||
(void)memset(ptr, 0, sizeof(struct fs_dir_t));
|
||||
|
||||
rc = fs_opendir(ptr, dirname);
|
||||
if (rc < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue