Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/8318bb7bb718
branches: trunk
changeset: 789884:8318bb7bb718
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 12 12:10:11 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/ic/ath.c | 6 ++----
sys/external/isc/atheros_hal/dist/ar5416/ar9280_attach.c | 4 +---
sys/external/isc/atheros_hal/dist/ar5416/ar9285_attach.c | 3 +--
3 files changed, 4 insertions(+), 9 deletions(-)
diffs (77 lines):
diff -r d1946a4f871a -r 8318bb7bb718 sys/dev/ic/ath.c
--- a/sys/dev/ic/ath.c Thu Sep 12 12:08:49 2013 +0000
+++ b/sys/dev/ic/ath.c Thu Sep 12 12:10:11 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ath.c,v 1.115 2013/01/27 12:48:56 jmcneill Exp $ */
+/* $NetBSD: ath.c,v 1.116 2013/09/12 12:17:53 martin Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.104 2005/09/16 10:09:23 ru Exp $");
#endif
#ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.115 2013/01/27 12:48:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.116 2013/09/12 12:17:53 martin Exp $");
#endif
/*
@@ -4353,7 +4353,6 @@
((struct ath_desc *)((char *)(_sc)->sc_rxdma.dd_desc + \
((_pa) - (_sc)->sc_rxdma.dd_desc_paddr)))
struct ath_hal *ah = sc->sc_ah;
- u_int64_t tsf;
ath_hal_stoppcurecv(ah); /* disable PCU */
ath_hal_setrxfilter(ah, 0); /* clear recv filter */
@@ -4366,7 +4365,6 @@
(void *)(uintptr_t) ath_hal_getrxbuf(ah), sc->sc_rxlink);
STAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) {
struct ath_desc *ds = bf->bf_desc;
- tsf = ath_hal_gettsf64(sc->sc_ah);
HAL_STATUS status = ath_hal_rxprocdesc(ah, ds,
bf->bf_daddr, PA2DESC(sc, ds->ds_link),
&ds->ds_rxstat);
diff -r d1946a4f871a -r 8318bb7bb718 sys/external/isc/atheros_hal/dist/ar5416/ar9280_attach.c
--- a/sys/external/isc/atheros_hal/dist/ar5416/ar9280_attach.c Thu Sep 12 12:08:49 2013 +0000
+++ b/sys/external/isc/atheros_hal/dist/ar5416/ar9280_attach.c Thu Sep 12 12:10:11 2013 +0000
@@ -306,13 +306,12 @@
static void
ar9280WriteIni(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan)
{
- u_int modesIndex, freqIndex;
+ u_int modesIndex;
int regWrites = 0;
/* Setup the indices for the next set of register array writes */
/* XXX Ignore 11n dynamic mode on the AR5416 for the moment */
if (IS_CHAN_2GHZ(chan)) {
- freqIndex = 2;
if (IS_CHAN_HT40(chan))
modesIndex = 3;
else if (IS_CHAN_108G(chan))
@@ -320,7 +319,6 @@
else
modesIndex = 4;
} else {
- freqIndex = 1;
if (IS_CHAN_HT40(chan) ||
IS_CHAN_TURBO(chan))
modesIndex = 2;
diff -r d1946a4f871a -r 8318bb7bb718 sys/external/isc/atheros_hal/dist/ar5416/ar9285_attach.c
--- a/sys/external/isc/atheros_hal/dist/ar5416/ar9285_attach.c Thu Sep 12 12:08:49 2013 +0000
+++ b/sys/external/isc/atheros_hal/dist/ar5416/ar9285_attach.c Thu Sep 12 12:10:11 2013 +0000
@@ -291,12 +291,11 @@
static void
ar9285WriteIni(struct ath_hal *ah, HAL_CHANNEL_INTERNAL *chan)
{
- u_int modesIndex, freqIndex;
+ u_int modesIndex;
int regWrites = 0;
/* Setup the indices for the next set of register array writes */
/* XXX Ignore 11n dynamic mode on the AR5416 for the moment */
- freqIndex = 2;
if (IS_CHAN_HT40(chan))
modesIndex = 3;
else if (IS_CHAN_108G(chan))
Home |
Main Index |
Thread Index |
Old Index