iwlegacy: remove several redundant variables
Variables id, unicast, write, conf, a_band, accum_tx and ucode are assigned a value but it is never read, hence they are redundant and can be removed. Cleans up clang warnings: warning: variable 'id' set but not used [-Wunused-but-set-variable] warning: variable 'unicast' set but not used [-Wunused-but-set-variable] warning: variable 'write' set but not used [-Wunused-but-set-variable] warning: variable 'conf' set but not used [-Wunused-but-set-variable] warning: variable 'a_band' set but not used [-Wunused-but-set-variable] warning: variable 'tx' set but not used [-Wunused-but-set-variable] warning: variable 'accum_tx' set but not used [-Wunused-but-set-variable] warning: variable 'ucode' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
0e139e97f5
commit
454127ad36
@@ -476,8 +476,6 @@ il3945_tx_skb(struct il_priv *il,
|
||||
int txq_id = skb_get_queue_mapping(skb);
|
||||
u16 len, idx, hdr_len;
|
||||
u16 firstlen, secondlen;
|
||||
u8 id;
|
||||
u8 unicast;
|
||||
u8 sta_id;
|
||||
u8 tid = 0;
|
||||
__le16 fc;
|
||||
@@ -496,9 +494,6 @@ il3945_tx_skb(struct il_priv *il,
|
||||
goto drop_unlock;
|
||||
}
|
||||
|
||||
unicast = !is_multicast_ether_addr(hdr->addr1);
|
||||
id = 0;
|
||||
|
||||
fc = hdr->frame_control;
|
||||
|
||||
#ifdef CONFIG_IWLEGACY_DEBUG
|
||||
@@ -957,10 +952,8 @@ il3945_rx_queue_restock(struct il_priv *il)
|
||||
struct list_head *element;
|
||||
struct il_rx_buf *rxb;
|
||||
unsigned long flags;
|
||||
int write;
|
||||
|
||||
spin_lock_irqsave(&rxq->lock, flags);
|
||||
write = rxq->write & ~0x7;
|
||||
while (il_rx_queue_space(rxq) > 0 && rxq->free_count) {
|
||||
/* Get next free Rx buffer, remove from free list */
|
||||
element = rxq->rx_free.next;
|
||||
@@ -2725,7 +2718,6 @@ void
|
||||
il3945_post_associate(struct il_priv *il)
|
||||
{
|
||||
int rc = 0;
|
||||
struct ieee80211_conf *conf = NULL;
|
||||
|
||||
if (!il->vif || !il->is_open)
|
||||
return;
|
||||
@@ -2738,8 +2730,6 @@ il3945_post_associate(struct il_priv *il)
|
||||
|
||||
il_scan_cancel_timeout(il, 200);
|
||||
|
||||
conf = &il->hw->conf;
|
||||
|
||||
il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
|
||||
il3945_commit_rxon(il);
|
||||
|
||||
|
Reference in New Issue
Block a user