summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2014-05-30 19:51:23 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2014-05-30 19:51:23 +0000
commitd6837fc33e0bcb1b789b6bff834c4e3aaffb2db9 (patch)
tree675e1ba756bf47a699301f0afdcc881c181d151c /sys/dev
parent164dc652765000ea6be25d9d010322f36b47f509 (diff)
Remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok claudio@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/xl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index e3863d7a580..5926eb0769c 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.112 2013/12/28 03:35:01 deraadt Exp $ */
+/* $OpenBSD: xl.c,v 1.113 2014/05/30 19:51:22 chl Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1102,10 +1102,8 @@ void
xl_fill_rx_ring(struct xl_softc *sc)
{
struct xl_chain_data *cd;
- struct xl_list_data *ld;
cd = &sc->xl_cdata;
- ld = sc->xl_ldata;
while (cd->xl_rx_cnt < XL_RX_LIST_CNT) {
if (xl_newbuf(sc, cd->xl_rx_prod) == ENOBUFS)