summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-01-12 00:39:11 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-01-12 00:39:11 +0000
commit378c1146d5a0d936464b5cd35629c211a290faae (patch)
tree3d486671b9bdbd2b29e47c3c9559b4e4b6e46634 /sys
parent4557f210f6c9ffc7004d9441874ac4fd0e2ae9e1 (diff)
Remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok grange@ krw@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cardbus/if_xl_cardbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/cardbus/if_xl_cardbus.c b/sys/dev/cardbus/if_xl_cardbus.c
index c3bf4fc88e8..fb9fc7cc069 100644
--- a/sys/dev/cardbus/if_xl_cardbus.c
+++ b/sys/dev/cardbus/if_xl_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xl_cardbus.c,v 1.22 2009/10/15 17:54:56 deraadt Exp $ */
+/* $OpenBSD: if_xl_cardbus.c,v 1.23 2010/01/12 00:39:10 chl Exp $ */
/* $NetBSD: if_xl_cardbus.c,v 1.13 2000/03/07 00:32:52 mycroft Exp $ */
/*
@@ -202,7 +202,7 @@ xl_cardbus_attach(struct device *parent, struct device *self, void *aux)
cardbus_devfunc_t ct = ca->ca_ct;
cardbus_chipset_tag_t cc = ct->ct_cc;
cardbus_function_tag_t cf = ct->ct_cf;
- cardbusreg_t iob, command, bhlc;
+ cardbusreg_t command, bhlc;
const struct xl_cardbus_product *ecp;
bus_space_handle_t ioh;
bus_addr_t adr;
@@ -222,7 +222,6 @@ xl_cardbus_attach(struct device *parent, struct device *self, void *aux)
sc->xl_flags = ecp->ecp_flags;
sc->sc_dmat = ca->ca_dmat;
- iob = adr;
sc->xl_bhandle = ioh;
(ct->ct_cf->cardbus_ctrl)(cc, CARDBUS_IO_ENABLE);