diff options
author | wengjianfeng <wengjianfeng@yulong.com> | 2021-02-03 09:16:25 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-02-08 14:18:53 +0300 |
commit | bb779d476ff74d95e2d299ee001b9063f00676c2 (patch) | |
tree | bfc895f8eb8eebbc754705cdb85e5139c3615695 /drivers/net/wireless/marvell | |
parent | 05d7f330748881385dad49db56f319a3ea099afd (diff) | |
download | linux-bb779d476ff74d95e2d299ee001b9063f00676c2.tar.xz |
mwl8k: assign value when defining variables
define refilled and then assign value to it, which should do
that at the same time.
Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210203061625.588-1-samirweng1979@163.com
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r-- | drivers/net/wireless/marvell/mwl8k.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c index abf3b0233ccc..435ef77227ab 100644 --- a/drivers/net/wireless/marvell/mwl8k.c +++ b/drivers/net/wireless/marvell/mwl8k.c @@ -1208,9 +1208,8 @@ static int rxq_refill(struct ieee80211_hw *hw, int index, int limit) { struct mwl8k_priv *priv = hw->priv; struct mwl8k_rx_queue *rxq = priv->rxq + index; - int refilled; + int refilled = 0; - refilled = 0; while (rxq->rxd_count < MWL8K_RX_DESCS && limit--) { struct sk_buff *skb; dma_addr_t addr; |