diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-29 09:06:51 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:53 -0700 |
commit | 949cadaa054588db0c4a3a0cfc3ac93f08fda913 (patch) | |
tree | ce68577effb36471c8e69f35c0fe98eede1b44f0 /drivers/staging/hv/Hv.c | |
parent | 127729066686c363c405c586731235443c03c252 (diff) | |
download | op-kernel-dev-949cadaa054588db0c4a3a0cfc3ac93f08fda913.zip op-kernel-dev-949cadaa054588db0c4a3a0cfc3ac93f08fda913.tar.gz |
Staging: hv: fix sparse NULL pointer warnings
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>
Diffstat (limited to 'drivers/staging/hv/Hv.c')
-rw-r--r-- | drivers/staging/hv/Hv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c index ef328d0..36e0d86 100644 --- a/drivers/staging/hv/Hv.c +++ b/drivers/staging/hv/Hv.c @@ -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; } |