mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv:fix MISRA-C return value violation
1) Change these 5 APIs to void type: vcpu_inject_pf uart16550_calc_baud_div uart16550_set_baud_rate console_init ptdev_activate_entry No need to return 'entry' for ptdev_activate_entry since the input parameter is 'entry'. 2) no need to check return value for the caller such as sbuf_put/console_putc/serial_puts/serial_get_rx_data Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
@@ -127,7 +127,7 @@ static int ptdev_interrupt_handler(__unused int irq, void *data)
|
||||
}
|
||||
|
||||
/* active intr with irq registering */
|
||||
struct ptdev_remapping_info *
|
||||
void
|
||||
ptdev_activate_entry(struct ptdev_remapping_info *entry, int phys_irq,
|
||||
bool lowpri)
|
||||
{
|
||||
@@ -141,7 +141,6 @@ ptdev_activate_entry(struct ptdev_remapping_info *entry, int phys_irq,
|
||||
entry->node = node;
|
||||
|
||||
atomic_set_int(&entry->active, ACTIVE_FLAG);
|
||||
return entry;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user