aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index db638b4454e3..168102e6ff6e 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1279,11 +1279,8 @@ static struct net_device * __devinit xennet_create_dev(struct xenbus_device *dev
1279 struct netfront_info *np; 1279 struct netfront_info *np;
1280 1280
1281 netdev = alloc_etherdev(sizeof(struct netfront_info)); 1281 netdev = alloc_etherdev(sizeof(struct netfront_info));
1282 if (!netdev) { 1282 if (!netdev)
1283 printk(KERN_WARNING "%s> alloc_etherdev failed.\n",
1284 __func__);
1285 return ERR_PTR(-ENOMEM); 1283 return ERR_PTR(-ENOMEM);
1286 }
1287 1284
1288 np = netdev_priv(netdev); 1285 np = netdev_priv(netdev);
1289 np->xbdev = dev; 1286 np->xbdev = dev;