Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2012 10:05:39 +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: r241127 - head/sys/dev/usb
Message-ID:  <201210021005.q92A5dB3017396@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Oct  2 10:05:39 2012
New Revision: 241127
URL: http://svn.freebsd.org/changeset/base/241127

Log:
  Remove unused field.
  
  MFC after:	1 week

Modified:
  head/sys/dev/usb/usb_hub.c

Modified: head/sys/dev/usb/usb_hub.c
==============================================================================
--- head/sys/dev/usb/usb_hub.c	Tue Oct  2 09:53:50 2012	(r241126)
+++ head/sys/dev/usb/usb_hub.c	Tue Oct  2 10:05:39 2012	(r241127)
@@ -103,7 +103,6 @@ struct uhub_softc {
 	struct usb_xfer *sc_xfer[UHUB_N_TRANSFER];	/* interrupt xfer */
 	uint8_t	sc_flags;
 #define	UHUB_FLAG_DID_EXPLORE 0x01
-	char	sc_name[32];
 };
 
 #define	UHUB_PROTO(sc) ((sc)->sc_udev->ddesc.bDeviceProtocol)
@@ -927,9 +926,6 @@ uhub_attach(device_t dev)
 
 	mtx_init(&sc->sc_mtx, "USB HUB mutex", NULL, MTX_DEF);
 
-	snprintf(sc->sc_name, sizeof(sc->sc_name), "%s",
-	    device_get_nameunit(dev));
-
 	device_set_usb_desc(dev);
 
 	DPRINTFN(2, "depth=%d selfpowered=%d, parent=%p, "



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