mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user