diff options
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8695net.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8695net.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c index ab81c0dc96e2..7c717276502f 100644 --- a/drivers/net/ethernet/micrel/ks8695net.c +++ b/drivers/net/ethernet/micrel/ks8695net.c | |||
@@ -1362,10 +1362,8 @@ ks8695_probe(struct platform_device *pdev) | |||
1362 | 1362 | ||
1363 | /* Initialise a net_device */ | 1363 | /* Initialise a net_device */ |
1364 | ndev = alloc_etherdev(sizeof(struct ks8695_priv)); | 1364 | ndev = alloc_etherdev(sizeof(struct ks8695_priv)); |
1365 | if (!ndev) { | 1365 | if (!ndev) |
1366 | dev_err(&pdev->dev, "could not allocate device.\n"); | ||
1367 | return -ENOMEM; | 1366 | return -ENOMEM; |
1368 | } | ||
1369 | 1367 | ||
1370 | SET_NETDEV_DEV(ndev, &pdev->dev); | 1368 | SET_NETDEV_DEV(ndev, &pdev->dev); |
1371 | 1369 | ||