mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-25 19:58:57 +00:00
hv: fixed compiling warning
removed some unnecessary variables and functions. v1-->v2: Replace div-by-zero with an inline ASM code Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -659,7 +659,7 @@ static int charmem(int cmd, const char *s_arg, uint32_t sz, void *hnd)
|
||||
int vsnprintf(char *dst_arg, size_t sz_arg, const char *fmt, va_list args)
|
||||
{
|
||||
char *dst = dst_arg;
|
||||
int32_t sz = sz_arg;
|
||||
uint32_t sz = sz_arg;
|
||||
int res = 0;
|
||||
|
||||
if ((sz == 0U) || (dst == NULL)) {
|
||||
|
||||
Reference in New Issue
Block a user