Staging: hv: fix sparse NULL pointer warnings
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 29 Jul 2009 16:06:51 +0000 (09:06 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:53 +0000 (12:01 -0700)
This fixes up all of the sparse warnings where NULL should be used
instead of 0.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/Hv.c

index ef328d0d38216fd0a793722e2ef278d5a9fdea66..36e0d860f14da7728fd979c75cc505c974c7586f 100644 (file)
@@ -231,7 +231,7 @@ HvInit (
        int ret=0;
     int maxLeaf;
        HV_X64_MSR_HYPERCALL_CONTENTS hypercallMsr;
-       void* virtAddr=0;
+       void *virtAddr = NULL;
 
        DPRINT_ENTER(VMBUS);
 
@@ -426,7 +426,7 @@ HvPostMessage(
        alignedMsg->PayloadSize = payloadSize;
        memcpy((void*)alignedMsg->Payload, payload, payloadSize);
 
-       status = HvDoHypercall(HvCallPostMessage, alignedMsg, 0) & 0xFFFF;
+       status = HvDoHypercall(HvCallPostMessage, alignedMsg, NULL) & 0xFFFF;
 
        kfree((void*)addr);
 
@@ -449,7 +449,7 @@ HvSignalEvent(void)
 {
        HV_STATUS status;
 
-       status = HvDoHypercall(HvCallSignalEvent, gHvContext.SignalEventParam, 0) & 0xFFFF;
+       status = HvDoHypercall(HvCallSignalEvent, gHvContext.SignalEventParam, NULL) & 0xFFFF;
 
        return status;
 }