(3/5) irda_device_setup should match ether_setup
Subsystems (2)
PATCH 1/1 (3/5) irda_device_setup should match ether_setup
irda_device_setup signature should match ether_setup so it can be used with alloc_netdev. No caller was checking the return value anyway.
include/net/irda/irda_device.h +1 -1
@@ -222,7 +222,7 @@int irda_device_set_raw_mode (struct net_device * self,int status);int irda_device_set_dtr_rts (struct net_device *dev,int dtr,int rts);int irda_device_change_speed (struct net_device *dev,__u32 speed); -int irda_device_setup (struct net_device *dev); +void irda_device_setup (struct net_device *dev);/* Dongle interface */ void irda_device_unregister_dongle (struct dongle_reg *dongle);
net/irda/irda_device.c +1 -4
@@ -383,10 +383,8 @@* This function should be used by low level device drivers in a similar way * as ether_setup() is used by normal network device drivers */ -int irda_device_setup (struct net_device *dev) +void irda_device_setup (struct net_device *dev) { - ASSERT(dev != NULL, return -1;); - dev->hard_header_len =0 ; dev->addr_len =0 ;
@@ -399,7 +397,6 @@ dev->mtu =2048 ; dev->flags =IFF_NOARP ; -return 0 ; }/*