mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV:fix rest integer violations
Fix integer related violations. V1->V2: clean all memset/calloc integer violations excpet bsp/boot directory Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -52,7 +52,7 @@ static void fifo_reset(struct fifo *fifo)
|
||||
|
||||
static void fifo_init(struct fifo *fifo, int sz)
|
||||
{
|
||||
fifo->buf = calloc(1, sz);
|
||||
fifo->buf = calloc(1U, sz);
|
||||
ASSERT(fifo->buf != NULL, "");
|
||||
fifo->size = sz;
|
||||
fifo_reset(fifo);
|
||||
@@ -360,7 +360,7 @@ void *vuart_init(struct vm *vm)
|
||||
struct vuart *vu;
|
||||
uint16_t divisor;
|
||||
|
||||
vu = calloc(1, sizeof(struct vuart));
|
||||
vu = calloc(1U, sizeof(struct vuart));
|
||||
ASSERT(vu != NULL, "");
|
||||
|
||||
/* Set baud rate*/
|
||||
|
Reference in New Issue
Block a user