Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267960
b: refs/heads/master
c: 0f48c72
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent bd10a65 commit 55afd05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 927bc33c0a239b706635b23c5cc1f3df2a3c8b86
refs/heads/master: 0f48c72ca63a6e1da7f226163c36fecd7a923fed
10 changes: 4 additions & 6 deletions trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static int netvsc_connect_vsp(struct hv_device *device)
if (!net_device) {
dev_err(&device->device, "unable to get net device..."
"device being destroyed?");
return -1;
return -ENODEV;
}

init_packet = &net_device->channel_init_pkt;
Expand Down Expand Up @@ -354,13 +354,13 @@ static int netvsc_connect_vsp(struct hv_device *device)

if (init_packet->msg.init_msg.init_complete.status !=
NVSP_STAT_SUCCESS) {
ret = -1;
ret = -EINVAL;
goto cleanup;
}

if (init_packet->msg.init_msg.init_complete.
negotiated_protocol_ver != NVSP_PROTOCOL_VERSION_1) {
ret = -1;
ret = -EPROTO;
goto cleanup;
}
/* Send the ndis version */
Expand All @@ -381,10 +381,8 @@ static int netvsc_connect_vsp(struct hv_device *device)
sizeof(struct nvsp_message),
(unsigned long)init_packet,
VM_PKT_DATA_INBAND, 0);
if (ret != 0) {
ret = -1;
if (ret != 0)
goto cleanup;
}

/* Post the big receive buffer to NetVSP */
ret = netvsc_init_recv_buf(device);
Expand Down

0 comments on commit 55afd05

Please sign in to comment.