HV: arch: fix a violation of coding guideline C-TY-24
The coding guideline rule C-TY-24 requires that 'cast shall not be
performed on a function pointer'. This patch removes a duplicated explicit
cast on timer_expired_handler in tsc_deadline_timer.c.
This patch has no semantic impacts.
Acked-by: Eddie Dong
@@ -30,7 +30,7 @@ void init_hw_timer(void)
int32_t retval = 0;
if (get_pcpu_id() == BSP_CPU_ID) {
- retval = request_irq(TIMER_IRQ, (irq_action_t)timer_expired_handler, NULL, IRQF_NONE);
+ retval = request_irq(TIMER_IRQ, timer_expired_handler, NULL, IRQF_NONE);
if (retval < 0) {
pr_err("Timer setup failed");
}
