Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: wfx: remove set but not used variable 'tx_priv'

drivers/staging/wfx/queue.c: In function wfx_tx_queues_get:
drivers/staging/wfx/queue.c:484:28: warning: variable tx_priv set but not used [-Wunused-but-set-variable]

commit 2e57865e79cf ("staging: wfx: pspoll_mask make no sense")
left behind this unused variable.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200211140334.55248-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

YueHaibing and committed by
Greg Kroah-Hartman
032b423b 36be4102

-2
-2
drivers/staging/wfx/queue.c
··· 481 481 struct wfx_queue *vif_queue = NULL; 482 482 u32 tx_allowed_mask = 0; 483 483 u32 vif_tx_allowed_mask = 0; 484 - const struct wfx_tx_priv *tx_priv = NULL; 485 484 struct wfx_vif *wvif; 486 485 int not_found; 487 486 int burst; ··· 540 541 skb = wfx_tx_queue_get(wdev, queue, tx_allowed_mask); 541 542 if (!skb) 542 543 continue; 543 - tx_priv = wfx_skb_tx_priv(skb); 544 544 hif = (struct hif_msg *) skb->data; 545 545 wvif = wdev_to_wvif(wdev, hif->interface); 546 546 WARN_ON(!wvif);