Skip to content

Commit

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

net_device->recv_buf =
Expand All @@ -216,7 +216,7 @@ static int netvsc_init_recv_buf(struct hv_device *device)
if (!net_device->recv_buf) {
dev_err(&device->device, "unable to allocate receive "
"buffer of size %d", net_device->recv_buf_size);
ret = -1;
ret = -ENOMEM;
goto cleanup;
}

Expand Down Expand Up @@ -269,7 +269,7 @@ static int netvsc_init_recv_buf(struct hv_device *device)
"initialzation with NetVsp - status %d",
init_packet->msg.v1_msg.
send_recv_buf_complete.status);
ret = -1;
ret = -EINVAL;
goto cleanup;
}

Expand All @@ -281,7 +281,7 @@ static int netvsc_init_recv_buf(struct hv_device *device)
net_device->recv_section = kmalloc(net_device->recv_section_cnt
* sizeof(struct nvsp_1_receive_buffer_section), GFP_KERNEL);
if (net_device->recv_section == NULL) {
ret = -1;
ret = -EINVAL;
goto cleanup;
}

Expand All @@ -297,7 +297,7 @@ static int netvsc_init_recv_buf(struct hv_device *device)
*/
if (net_device->recv_section_cnt != 1 ||
net_device->recv_section->offset != 0) {
ret = -1;
ret = -EINVAL;
goto cleanup;
}

Expand Down

0 comments on commit bd10a65

Please sign in to comment.