summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-01-04 18:34:20 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-01-04 18:34:20 +0000
commit0cd9308f43d1309399f86f68a1eb1e1957e1eb5b (patch)
treef6b25febff8f35a36e5727903272ac49465143cd /sys
parent0e4d1b70dca71792bf07e734ca3b76068860f321 (diff)
remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok krw@ dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_lmc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c
index 65404b1cfd4..a60df284061 100644
--- a/sys/dev/pci/if_lmc.c
+++ b/sys/dev/pci/if_lmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lmc.c,v 1.23 2006/05/13 19:10:02 brad Exp $ */
+/* $OpenBSD: if_lmc.c,v 1.24 2010/01/04 18:34:19 chl Exp $ */
/* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */
/*-
@@ -326,13 +326,10 @@ static void
lmc_watchdog(struct ifnet *ifp)
{
lmc_softc_t * const sc = LMC_IFP_TO_SOFTC(ifp);
- int state;
u_int32_t ostatus;
u_int32_t link_status;
u_int32_t ticks;
- state = 0;
-
/*
* Make sure the tx jabber and rx watchdog are off,
* and the transmit and receive processes are running.