Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 17:42:14 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239181 - head/sys/dev/usb/serial
Message-ID:  <201208101742.q7AHgEdc059560@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Aug 10 17:42:14 2012
New Revision: 239181
URL: http://svn.freebsd.org/changeset/base/239181

Log:
  Remove unused structure field.
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/usb/serial/ubser.c
  head/sys/dev/usb/serial/ucycom.c
  head/sys/dev/usb/serial/ufoma.c
  head/sys/dev/usb/serial/uftdi.c
  head/sys/dev/usb/serial/umct.c

Modified: head/sys/dev/usb/serial/ubser.c
==============================================================================
--- head/sys/dev/usb/serial/ubser.c	Fri Aug 10 15:29:41 2012	(r239180)
+++ head/sys/dev/usb/serial/ubser.c	Fri Aug 10 17:42:14 2012	(r239181)
@@ -141,7 +141,6 @@ struct ubser_softc {
 	uint8_t	sc_iface_no;
 	uint8_t	sc_iface_index;
 	uint8_t	sc_curr_tx_unit;
-	uint8_t	sc_name[16];
 };
 
 /* prototypes */
@@ -249,9 +248,6 @@ ubser_attach(device_t dev)
 	mtx_init(&sc->sc_mtx, "ubser", NULL, MTX_DEF);
 	ucom_ref(&sc->sc_super_ucom);
 
-	snprintf(sc->sc_name, sizeof(sc->sc_name), "%s",
-	    device_get_nameunit(dev));
-
 	sc->sc_iface_no = uaa->info.bIfaceNum;
 	sc->sc_iface_index = uaa->info.bIfaceIndex;
 	sc->sc_udev = uaa->device;

Modified: head/sys/dev/usb/serial/ucycom.c
==============================================================================
--- head/sys/dev/usb/serial/ucycom.c	Fri Aug 10 15:29:41 2012	(r239180)
+++ head/sys/dev/usb/serial/ucycom.c	Fri Aug 10 17:42:14 2012	(r239181)
@@ -101,7 +101,6 @@ struct ucycom_softc {
 #define	UCYCOM_CFG_STOPB	0x08
 #define	UCYCOM_CFG_DATAB	0x03
 	uint8_t	sc_ist;			/* status flags from last input */
-	uint8_t	sc_name[16];
 	uint8_t	sc_iface_no;
 	uint8_t	sc_temp_cfg[32];
 };
@@ -224,9 +223,6 @@ ucycom_attach(device_t dev)
 	mtx_init(&sc->sc_mtx, "ucycom", NULL, MTX_DEF);
 	ucom_ref(&sc->sc_super_ucom);
 
-	snprintf(sc->sc_name, sizeof(sc->sc_name),
-	    "%s", device_get_nameunit(dev));
-
 	DPRINTF("\n");
 
 	/* get chip model */

Modified: head/sys/dev/usb/serial/ufoma.c
==============================================================================
--- head/sys/dev/usb/serial/ufoma.c	Fri Aug 10 15:29:41 2012	(r239180)
+++ head/sys/dev/usb/serial/ufoma.c	Fri Aug 10 17:42:14 2012	(r239181)
@@ -195,7 +195,6 @@ struct ufoma_softc {
 	uint8_t	sc_msr;
 	uint8_t	sc_modetoactivate;
 	uint8_t	sc_currentmode;
-	uint8_t	sc_name[16];
 };
 
 /* prototypes */
@@ -394,9 +393,6 @@ ufoma_attach(device_t dev)
 
 	device_set_usb_desc(dev);
 
-	snprintf(sc->sc_name, sizeof(sc->sc_name),
-	    "%s", device_get_nameunit(dev));
-
 	DPRINTF("\n");
 
 	/* setup control transfers */

Modified: head/sys/dev/usb/serial/uftdi.c
==============================================================================
--- head/sys/dev/usb/serial/uftdi.c	Fri Aug 10 15:29:41 2012	(r239180)
+++ head/sys/dev/usb/serial/uftdi.c	Fri Aug 10 17:42:14 2012	(r239181)
@@ -110,8 +110,6 @@ struct uftdi_softc {
 	uint8_t	sc_hdrlen;
 	uint8_t	sc_msr;
 	uint8_t	sc_lsr;
-
-	uint8_t	sc_name[16];
 };
 
 struct uftdi_param_config {
@@ -890,9 +888,6 @@ uftdi_attach(device_t dev)
 	mtx_init(&sc->sc_mtx, "uftdi", NULL, MTX_DEF);
 	ucom_ref(&sc->sc_super_ucom);
 
-	snprintf(sc->sc_name, sizeof(sc->sc_name),
-	    "%s", device_get_nameunit(dev));
-
 	DPRINTF("\n");
 
 	sc->sc_iface_index = uaa->info.bIfaceIndex;

Modified: head/sys/dev/usb/serial/umct.c
==============================================================================
--- head/sys/dev/usb/serial/umct.c	Fri Aug 10 15:29:41 2012	(r239180)
+++ head/sys/dev/usb/serial/umct.c	Fri Aug 10 17:42:14 2012	(r239181)
@@ -115,7 +115,6 @@ struct umct_softc {
 	uint8_t	sc_mcr;
 	uint8_t	sc_iface_no;
 	uint8_t sc_swap_cb;
-	uint8_t	sc_name[16];
 };
 
 /* prototypes */
@@ -257,9 +256,6 @@ umct_attach(device_t dev)
 	mtx_init(&sc->sc_mtx, "umct", NULL, MTX_DEF);
 	ucom_ref(&sc->sc_super_ucom);
 
-	snprintf(sc->sc_name, sizeof(sc->sc_name),
-	    "%s", device_get_nameunit(dev));
-
 	sc->sc_iface_no = uaa->info.bIfaceNum;
 
 	iface_index = UMCT_IFACE_INDEX;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208101742.q7AHgEdc059560>