Skip to content

Commit

Permalink
Staging: hv: fix sparse NULL pointer warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 1277290 commit 949cada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/hv/Hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand All @@ -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;
}
Expand Down

0 comments on commit 949cada

Please sign in to comment.