DragonFly BSD
DragonFly submit List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[PATCH] small fixes for if_xl


From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Wed, 11 May 2005 16:50:52 +0800

attached patch does following:
1) fix comments.  this driver is no longer in sys/pci
2) sc->xl_unit is not initialized here

please review it

-- 
Live Free or Die
Index: if_xl.c
===================================================================
RCS file: /opt/df_cvs/src/sys/dev/netif/xl/if_xl.c,v
retrieving revision 1.17
diff -u -p -r1.17 if_xl.c
--- if_xl.c	20 Feb 2005 04:04:55 -0000	1.17
+++ if_xl.c	11 May 2005 08:55:36 -0000
@@ -98,8 +98,7 @@
  * support the PCI "boomerang" chips even though they work with the
  * "vortex" driver in order to obtain better performance.
  *
- * This driver is in the /sys/pci directory because it only supports
- * PCI-based NICs.
+ * This driver only supports PCI-based NICs.
  */
 
 #include <sys/param.h>
@@ -1472,7 +1471,7 @@ xl_attach(dev)
 	 * Get station address from the EEPROM.
 	 */
 	if (xl_read_eeprom(sc, (caddr_t)&eaddr, XL_EE_OEM_ADR0, 3, 1)) {
-		printf("xl%d: failed to read station address\n", sc->xl_unit);
+		printf("xl%d: failed to read station address\n", unit);
 		error = ENXIO;
 		goto fail;
 	}


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]