Commit cec9104e authored by Alexander Viro's avatar Alexander Viro Committed by Stephen Hemminger

[netdrvr ether00] s/kfree/free_netdev/ ; remove redundant memset() calls

parent 3b555abf
......@@ -923,8 +923,6 @@ static int ether00_add_device(struct pldhs_dev_info* dev_info,void* dev_ps_data)
result = -ENOMEM;
goto out_release;
}
memset(dev,0,sizeof(struct net_device));
memset(dev->priv, 0, sizeof(struct net_priv));
priv = dev->priv;
priv->tq_memupdate.routine=ether00_mem_update;
......@@ -966,7 +964,7 @@ static int ether00_add_device(struct pldhs_dev_info* dev_info,void* dev_ps_data)
out_unmap:
iounmap(map_addr);
out_kfree:
kfree(dev);
free_netdev(dev);
out_release:
release_mem_region(dev_info->base_addr, MAC_REG_SIZE);
return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment