svn commit: r251679 - head/sys/dev/usb/net

Kevin Lo kevlo at FreeBSD.org
Thu Jun 13 05:46:20 UTC 2013


Author: kevlo
Date: Thu Jun 13 05:46:19 2013
New Revision: 251679
URL: http://svnweb.freebsd.org/changeset/base/251679

Log:
  Remove unused variable sc_tx_bufsz.
  The variable is initialized but not used.
  
  Reviewed by:	yongari

Modified:
  head/sys/dev/usb/net/if_axe.c
  head/sys/dev/usb/net/if_axereg.h

Modified: head/sys/dev/usb/net/if_axe.c
==============================================================================
--- head/sys/dev/usb/net/if_axe.c	Thu Jun 13 04:11:21 2013	(r251678)
+++ head/sys/dev/usb/net/if_axe.c	Thu Jun 13 05:46:19 2013	(r251679)
@@ -833,19 +833,15 @@ axe_attach_post(struct usb_ether *ue)
 	/* Initialize controller and get station address. */
 	if (sc->sc_flags & AXE_FLAG_178) {
 		axe_ax88178_init(sc);
-		sc->sc_tx_bufsz = 16 * 1024;
 		axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
 	} else if (sc->sc_flags & AXE_FLAG_772) {
 		axe_ax88772_init(sc);
-		sc->sc_tx_bufsz = 8 * 1024;
 		axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
 	} else if (sc->sc_flags & AXE_FLAG_772A) {
 		axe_ax88772a_init(sc);
-		sc->sc_tx_bufsz = 8 * 1024;
 		axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
 	} else if (sc->sc_flags & AXE_FLAG_772B) {
 		axe_ax88772b_init(sc);
-		sc->sc_tx_bufsz = 8 * 1024;
 	} else
 		axe_cmd(sc, AXE_172_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
 

Modified: head/sys/dev/usb/net/if_axereg.h
==============================================================================
--- head/sys/dev/usb/net/if_axereg.h	Thu Jun 13 04:11:21 2013	(r251678)
+++ head/sys/dev/usb/net/if_axereg.h	Thu Jun 13 05:46:19 2013	(r251679)
@@ -349,7 +349,6 @@ struct axe_softc {
 	uint8_t			sc_phyaddrs[2];
 	uint16_t		sc_pwrcfg;
 	uint16_t		sc_lenmask;
-	int			sc_tx_bufsz;
 };
 
 #define	AXE_IS_178_FAMILY(sc)						  \


More information about the svn-src-all mailing list