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.

Tracked-On: #6776
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Junjie Mao 2021-11-01 14:44:54 +08:00 committed by wenlingz
parent 9781873e77
commit 2c86795fa8
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}