Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197434
b: refs/heads/master
c: fd4dc88
h: refs/heads/master
v: v3
  • Loading branch information
Haiyang Zhang authored and Greg Kroah-Hartman committed May 14, 2010
1 parent aedade7 commit c3d9d9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3dfe08e6073f40a742fe3e5d6b43ca8184c55722
refs/heads/master: fd4dc88e46c4d9dd845ffef50a975ceea110fd85
8 changes: 4 additions & 4 deletions trunk/drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ int VmbusChannelOpen(struct vmbus_channel *NewChannel, u32 SendRingBufferSize,
RecvRingBufferSize) >> PAGE_SHIFT;

ret = RingBufferInit(&NewChannel->Outbound, out, SendRingBufferSize);
if (!ret) {
if (ret != 0) {
err = ret;
goto errorout;
}

ret = RingBufferInit(&NewChannel->Inbound, in, RecvRingBufferSize);
if (!ret) {
if (ret != 0) {
err = ret;
goto errorout;
}
Expand All @@ -228,7 +228,7 @@ int VmbusChannelOpen(struct vmbus_channel *NewChannel, u32 SendRingBufferSize,
RecvRingBufferSize,
&NewChannel->RingBufferGpadlHandle);

if (!ret) {
if (ret != 0) {
err = ret;
goto errorout;
}
Expand Down Expand Up @@ -569,7 +569,7 @@ int VmbusChannelEstablishGpadl(struct vmbus_channel *Channel, void *Kbuffer,
ret = VmbusPostMessage(gpadlBody,
subMsgInfo->MessageSize -
sizeof(*subMsgInfo));
if (!ret)
if (ret != 0)
goto Cleanup;

}
Expand Down

0 comments on commit c3d9d9c

Please sign in to comment.