Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2011 23:22:51 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227042 - head/sys/dev/tl
Message-ID:  <201111022322.pA2NMpGL042884@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Wed Nov  2 23:22:50 2011
New Revision: 227042
URL: http://svn.freebsd.org/changeset/base/227042

Log:
  Remove variable initialized but no longer actually used since r226995.
  
  Found with:	Coverity Prevent(tm)
  CID:		10044

Modified:
  head/sys/dev/tl/if_tl.c

Modified: head/sys/dev/tl/if_tl.c
==============================================================================
--- head/sys/dev/tl/if_tl.c	Wed Nov  2 23:18:19 2011	(r227041)
+++ head/sys/dev/tl/if_tl.c	Wed Nov  2 23:22:50 2011	(r227042)
@@ -920,12 +920,9 @@ static void
 tl_hardreset(dev)
 	device_t		dev;
 {
-	struct tl_softc		*sc;
 	int			i;
 	u_int16_t		flags;
 
-	sc = device_get_softc(dev);
-
 	mii_bitbang_sync(dev, &tl_mii_bitbang_ops);
 
 	flags = BMCR_LOOP|BMCR_ISO|BMCR_PDOWN;



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