svn commit: r297841 - head/sys/dev/hyperv/vmbus
Sepherosa Ziehau
sephe at FreeBSD.org
Tue Apr 12 02:01:18 UTC 2016
Author: sephe
Date: Tue Apr 12 02:01:16 2016
New Revision: 297841
URL: https://svnweb.freebsd.org/changeset/base/297841
Log:
hyperv: Replace 0 w/ NULL
Submitted by: pfg
MFC after: 1 week
Sponsored by: Microsoft OSTC
Modified:
head/sys/dev/hyperv/vmbus/hv_hv.c
head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
Modified: head/sys/dev/hyperv/vmbus/hv_hv.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_hv.c Mon Apr 11 22:47:03 2016 (r297840)
+++ head/sys/dev/hyperv/vmbus/hv_hv.c Tue Apr 12 02:01:16 2016 (r297841)
@@ -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,
Modified: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c Mon Apr 11 22:47:03 2016 (r297840)
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c Tue Apr 12 02:01:16 2016 (r297841)
@@ -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);
}
More information about the svn-src-head
mailing list