hyperv: Replace 0 w/ NULL
Submitted by: pfg MFC after: 1 week Sponsored by: Microsoft OSTC
This commit is contained in:
parent
2c6254c287
commit
3d861d81b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297841
@ -127,7 +127,7 @@ int
|
||||
hv_vmbus_init(void)
|
||||
{
|
||||
hv_vmbus_x64_msr_hypercall_contents hypercall_msr;
|
||||
void* virt_addr = 0;
|
||||
void* virt_addr = NULL;
|
||||
|
||||
memset(
|
||||
hv_vmbus_g_context.syn_ic_event_page,
|
||||
|
@ -581,7 +581,7 @@ vmbus_bus_exit(void)
|
||||
smp_rendezvous(NULL, hv_vmbus_synic_cleanup, NULL, NULL);
|
||||
|
||||
for(i = 0; i < 2 * MAXCPU; i++) {
|
||||
if (setup_args.page_buffers[i] != 0)
|
||||
if (setup_args.page_buffers[i] != NULL)
|
||||
free(setup_args.page_buffers[i], M_DEVBUF);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user