mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV:fix 'missing for discarded return value' violations
Return value should be checked,fix it by add "void" when the function return value is not used. V1->V2: replace printf with pr_warn. V2->V3: change the commit to make read easily. Tracked-On:#861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -72,7 +72,7 @@ void free_irq_num(uint32_t irq)
|
||||
|
||||
if (irq_is_gsi(irq) == false) {
|
||||
spinlock_irqsave_obtain(&irq_alloc_spinlock, &rflags);
|
||||
bitmap_test_and_clear_nolock((uint16_t)(irq & 0x3FU),
|
||||
(void)bitmap_test_and_clear_nolock((uint16_t)(irq & 0x3FU),
|
||||
irq_alloc_bitmap + (irq >> 6U));
|
||||
spinlock_irqrestore_release(&irq_alloc_spinlock, rflags);
|
||||
}
|
||||
|
Reference in New Issue
Block a user