wireless: zd1211rw: remove redundant assignment of pointer 'q'
authorColin Ian King <colin.king@canonical.com>
Tue, 30 Jan 2018 18:25:37 +0000 (18:25 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:16:35 +0000 (18:16 +0200)
Pointer q is initialized and then almost immediately afterwards being
re-assigned the same value. Remove the second redundant assignment.

Cleans up clang warning:
drivers/net/wireless/zydas/zd1211rw/zd_mac.c:503:23: warning: Value
stored to 'q' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/zydas/zd1211rw/zd_mac.c

index b785742bfd9e097b9aa283c5aa9354ef1daaa403..b01b44a5d16ead6b9dddc71c198f28d385027621 100644 (file)
@@ -509,7 +509,6 @@ void zd_mac_tx_failed(struct urb *urb)
        int found = 0;
        int i, position = 0;
 
-       q = &mac->ack_wait_queue;
        spin_lock_irqsave(&q->lock, flags);
 
        skb_queue_walk(q, skb) {