Staging: hv: remove ASSERT() in Channel.c

return an error instead of calling ASSERT() if VmbusPostMessage()
fails.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Bill Pemberton 2010-05-05 15:27:36 -04:00 committed by Greg Kroah-Hartman
parent d1c250bb5d
commit 99259159c0

View File

@ -551,7 +551,9 @@ int VmbusChannelEstablishGpadl(struct vmbus_channel *Channel, void *Kbuffer,
ret = VmbusPostMessage(gpadlBody,
subMsgInfo->MessageSize -
sizeof(*subMsgInfo));
ASSERT(ret == 0);
if (!ret)
goto Cleanup;
}
}
osd_WaitEventWait(msgInfo->WaitEvent);