|
@@ -547,8 +547,8 @@ static int __init lance_probe1(struct net_device *dev, int ioaddr, int irq, int
|
|
|
/* Make certain the data structures used by the LANCE are aligned and DMAble. */
|
|
/* Make certain the data structures used by the LANCE are aligned and DMAble. */
|
|
|
|
|
|
|
|
lp = kzalloc(sizeof(*lp), GFP_DMA | GFP_KERNEL);
|
|
lp = kzalloc(sizeof(*lp), GFP_DMA | GFP_KERNEL);
|
|
|
- if(lp==NULL)
|
|
|
|
|
- return -ENODEV;
|
|
|
|
|
|
|
+ if (!lp)
|
|
|
|
|
+ return -ENOMEM;
|
|
|
if (lance_debug > 6) printk(" (#0x%05lx)", (unsigned long)lp);
|
|
if (lance_debug > 6) printk(" (#0x%05lx)", (unsigned long)lp);
|
|
|
dev->ml_priv = lp;
|
|
dev->ml_priv = lp;
|
|
|
lp->name = chipname;
|
|
lp->name = chipname;
|