DORMANTno replies

[PATCH] (3/5) irda_device_setup should match ether_setup

From: Stephen Hemminger <hidden>
Date: 2003-08-15 22:52:54

irda_device_setup signature should match ether_setup so it can
be used with alloc_netdev.  No caller was checking the return
value anyway.

diff -Nru a/include/net/irda/irda_device.h b/include/net/irda/irda_device.h
--- a/include/net/irda/irda_device.h	Fri Aug 15 13:07:28 2003
+++ b/include/net/irda/irda_device.h	Fri Aug 15 13:07:28 2003
@@ -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);
diff -Nru a/net/irda/irda_device.c b/net/irda/irda_device.c
--- a/net/irda/irda_device.c	Fri Aug 15 13:07:28 2003
+++ b/net/irda/irda_device.c	Fri Aug 15 13:07:28 2003
@@ -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;
 }
 
 /*
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help