mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +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:
@@ -159,7 +159,7 @@ void do_logmsg(uint32_t severity, const char *fmt, ...)
|
||||
|
||||
for (i = 0; i < (msg_len - 1) / LOG_ENTRY_SIZE + 1;
|
||||
i++) {
|
||||
sbuf_put(sbuf, (uint8_t *)buffer +
|
||||
(void)sbuf_put(sbuf, (uint8_t *)buffer +
|
||||
i * LOG_ENTRY_SIZE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user