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
|
@ -80,7 +80,7 @@ void k_mem_domain_init(struct k_mem_domain *domain, u8_t num_parts,
|
|||
key = irq_lock();
|
||||
|
||||
domain->num_partitions = num_parts;
|
||||
memset(domain->partitions, 0, sizeof(domain->partitions));
|
||||
(void)memset(domain->partitions, 0, sizeof(domain->partitions));
|
||||
|
||||
if (num_parts) {
|
||||
u32_t i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue