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:
Huihuang Shi
2018-08-01 12:08:04 +08:00
committed by lijinxia
parent 56904bc235
commit 1664e0c842
11 changed files with 24 additions and 24 deletions

View File

@@ -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*/