hv:fix "missing for discarded return value" for memset

No need to check the return value for memset
code like this:
int a(void) {
	return 0;
}
int b(void){
	a();
}
fix as follow:
int a(void) {
	return 0;
}
int b(void){
	(void)a();
}

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Mingqiang Chi
2018-07-05 10:26:45 +08:00
committed by lijinxia
parent 91ef6ed59b
commit 666430a3d4
24 changed files with 65 additions and 63 deletions

View File

@@ -23,7 +23,7 @@ static void init_irq_desc(void)
irq_desc_base = alloc_pages(page_num);
ASSERT(irq_desc_base != NULL, "page alloc failed!");
memset(irq_desc_base, 0, page_num * CPU_PAGE_SIZE);
(void)memset(irq_desc_base, 0, page_num * CPU_PAGE_SIZE);
for (i = 0U; i < NR_MAX_IRQS; i++) {
irq_desc_base[i].irq = i;