Skip to contentSkip to conversation

minor cleanups

i4l Applied Paul Bolle 2 participants 2 messages Jan 12, 2009 – Jan 14, 2009

Subsystems (2)
lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

Minor cleanups, either made possible or obvious after commit d700555 (I4l:
convert to net_device_ops).

---
Sent only to [email protected] (and not also to [email protected]) because an earlier ISDN patch I wrote only got a response from this list (and this patch is NETWORKING related anyway).
---

drivers/isdn/i4l/isdn_net.c +0 -5
index 7c5f970..ecc92c8 100644
@@ -2513,7 +2513,6 @@ static const struct net_device_ops isdn_netdev_ops = {
 	.ndo_stop	      = isdn_net_close,
 	.ndo_do_ioctl	      = isdn_net_ioctl,
 
-	.ndo_validate_addr    = NULL,
 	.ndo_start_xmit	      = isdn_net_start_xmit,
 	.ndo_get_stats	      = isdn_net_get_stats,
 	.ndo_tx_timeout	      = isdn_net_tx_timeout,
@@ -2528,12 +2527,8 @@ static void _isdn_setup(struct net_device *dev)
 
 	ether_setup(dev);
 
-	dev->flags = IFF_NOARP | IFF_POINTOPOINT;
 	/* Setup the generic properties */
-	dev->mtu = 1500;
 	dev->flags = IFF_NOARP|IFF_POINTOPOINT;
-	dev->type = ARPHRD_ETHER;
-	dev->addr_len = ETH_ALEN;
 	dev->header_ops = NULL;
 	dev->netdev_ops = &isdn_netdev_ops;