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

Kevin Lo kevlo at FreeBSD.org
Mon Sep 17 09:32:12 UTC 2012


Author: kevlo
Date: Mon Sep 17 09:32:11 2012
New Revision: 240597
URL: http://svn.freebsd.org/changeset/base/240597

Log:
  Remove unused variable cd.
  This variable is initialized but not used.

Modified:
  head/sys/dev/usb/net/uhso.c

Modified: head/sys/dev/usb/net/uhso.c
==============================================================================
--- head/sys/dev/usb/net/uhso.c	Mon Sep 17 09:22:59 2012	(r240596)
+++ head/sys/dev/usb/net/uhso.c	Mon Sep 17 09:32:11 2012	(r240597)
@@ -540,7 +540,6 @@ uhso_attach(device_t self)
 {
 	struct uhso_softc *sc = device_get_softc(self);
 	struct usb_attach_arg *uaa = device_get_ivars(self);
-	struct usb_config_descriptor *cd;
 	struct usb_interface_descriptor *id;
 	struct sysctl_ctx_list *sctx;
 	struct sysctl_oid *soid;
@@ -561,7 +560,6 @@ uhso_attach(device_t self)
 	sc->sc_ttys = 0;
 	sc->sc_radio = 1;
 
-	cd = usbd_get_config_descriptor(uaa->device);
 	id = usbd_get_interface_descriptor(uaa->iface);
 	sc->sc_ctrl_iface_no = id->bInterfaceNumber;
 


More information about the svn-src-all mailing list