mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
HV:debug:fix "signed/unsigned conversion without cast"
Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.Change the API tgt_uart/ static int uart16550_get_rx_err(uint32_t rx_data) to return uint32_t b.modified the format of if from "if (length > 32*(length/32))" to "if (length % 32U > 0)" V3->V4: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -214,9 +214,9 @@ static int uart16550_open(struct tgt_uart *tgt_uart,
|
||||
return status;
|
||||
}
|
||||
|
||||
static int uart16550_get_rx_err(uint32_t rx_data)
|
||||
static uint32_t uart16550_get_rx_err(uint32_t rx_data)
|
||||
{
|
||||
int rx_status = SD_RX_NO_ERROR;
|
||||
uint32_t rx_status = SD_RX_NO_ERROR;
|
||||
|
||||
/* Check for RX overrun error */
|
||||
if ((rx_data & LSR_OE) != 0U)
|
||||
|
||||
Reference in New Issue
Block a user