mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +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:
@@ -171,7 +171,7 @@ void timer_cleanup(void)
|
||||
per_cpu(timer_node, pcpu_id) = NULL;
|
||||
}
|
||||
|
||||
int timer_softirq(int pcpu_id)
|
||||
void timer_softirq(int pcpu_id)
|
||||
{
|
||||
struct per_cpu_timers *cpu_timer;
|
||||
struct timer *timer;
|
||||
@@ -207,7 +207,6 @@ int timer_softirq(int pcpu_id)
|
||||
|
||||
/* update nearest timer */
|
||||
update_physical_timer(cpu_timer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void check_tsc(void)
|
||||
|
||||
Reference in New Issue
Block a user