From 2c86795fa8fc5c7ee3d101fe4d7355c4ed72a05f Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Mon, 1 Nov 2021 14:44:54 +0800 Subject: [PATCH] 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 Acked-by: Eddie Dong --- hypervisor/arch/x86/tsc_deadline_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/tsc_deadline_timer.c b/hypervisor/arch/x86/tsc_deadline_timer.c index f26ffbcbe..7dcc7560e 100644 --- a/hypervisor/arch/x86/tsc_deadline_timer.c +++ b/hypervisor/arch/x86/tsc_deadline_timer.c @@ -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"); }