diff options
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_emaclite.c')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 79013e5731a5..90e611a6f6c6 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c | |||
@@ -1136,10 +1136,8 @@ static int __devinit xemaclite_of_probe(struct platform_device *ofdev) | |||
1136 | 1136 | ||
1137 | /* Create an ethernet device instance */ | 1137 | /* Create an ethernet device instance */ |
1138 | ndev = alloc_etherdev(sizeof(struct net_local)); | 1138 | ndev = alloc_etherdev(sizeof(struct net_local)); |
1139 | if (!ndev) { | 1139 | if (!ndev) |
1140 | dev_err(dev, "Could not allocate network device\n"); | ||
1141 | return -ENOMEM; | 1140 | return -ENOMEM; |
1142 | } | ||
1143 | 1141 | ||
1144 | dev_set_drvdata(dev, ndev); | 1142 | dev_set_drvdata(dev, ndev); |
1145 | SET_NETDEV_DEV(ndev, &ofdev->dev); | 1143 | SET_NETDEV_DEV(ndev, &ofdev->dev); |