Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289897
b: refs/heads/master
c: 6f4c444
h: refs/heads/master
i:
  289895: 3679ec1
v: v3
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Feb 5, 2012
1 parent a088256 commit 9b95abe
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5fccab3b66d53883a97fc65e0c33f3ebf74e8ff9
refs/heads/master: 6f4c44460750dd4eb9926a58ab1ad0ceacef8284
7 changes: 2 additions & 5 deletions trunk/drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,10 @@ void netvsc_linkstatus_callback(struct hv_device *device_obj,
int netvsc_recv_callback(struct hv_device *device_obj,
struct hv_netvsc_packet *packet)
{
struct net_device *net = dev_get_drvdata(&device_obj->device);
struct net_device *net;
struct sk_buff *skb;
struct netvsc_device *net_device;

net_device = hv_get_drvdata(device_obj);
net = net_device->ndev;

net = ((struct netvsc_device *)hv_get_drvdata(device_obj))->ndev;
if (!net) {
netdev_err(net, "got receive callback but net device"
" not initialized yet\n");
Expand Down

0 comments on commit 9b95abe

Please sign in to comment.