fix parted of "missing for discarded return value"

MISRA C required that return value should be used, missing for it should
add "(void)" prefix before the function call.
Some function can be declared without return value to avoid this problem.

Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2018-06-19 10:15:48 +08:00
committed by lijinxia
parent b8bdf171eb
commit 977c4b20b5
24 changed files with 46 additions and 63 deletions

View File

@@ -686,7 +686,7 @@ pri_register_handler(uint32_t irq,
return common_register_handler(irq, &info);
}
int get_cpu_interrupt_info(char *str, int str_max)
void get_cpu_interrupt_info(char *str, int str_max)
{
int pcpu_id;
uint32_t irq, vector, len, size = str_max;
@@ -727,5 +727,4 @@ int get_cpu_interrupt_info(char *str, int str_max)
}
}
snprintf(str, size, "\r\n");
return 0;
}