ath: Partly fix set-but-unused gcc47 warning
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2013 02:12:46 +0000 (10:12 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2013 02:12:46 +0000 (10:12 +0800)
sys/dev/netif/ath/hal/ath_hal/ar5212/ar5212_reset.c

index 37c173a..22ce6d9 100644 (file)
@@ -713,12 +713,11 @@ ar5212ChannelChange(struct ath_hal *ah, const struct ieee80211_channel *chan)
        uint32_t   data, synthDelay, qnum;
        uint16_t   rfXpdGain[MAX_NUM_PDGAINS_PER_CHANNEL];
        HAL_BOOL    txStopped = AH_TRUE;
-       HAL_CHANNEL_INTERNAL *ichan;
 
        /*
         * Map public channel to private.
         */
-       ichan = ath_hal_checkchannel(ah, chan);
+       ath_hal_checkchannel(ah, chan);
 
        /* TX must be stopped or RF Bus grant will not work */
        for (qnum = 0; qnum < AH_PRIVATE(ah)->ah_caps.halTotalQueues; qnum++) {