projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d7f33
)
mwl8k: assign value when defining variables
author
wengjianfeng
<wengjianfeng@yulong.com>
Wed, 3 Feb 2021 06:16:25 +0000
(14:16 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 8 Feb 2021 11:18:53 +0000
(13:18 +0200)
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
drivers/net/wireless/marvell/mwl8k.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/marvell/mwl8k.c
b/drivers/net/wireless/marvell/mwl8k.c
index abf3b0233ccce6f23b56bba295bbe8e5a4b5e1f4..435ef77227abfac911d50acb7976e7f6d4f02469 100644
(file)
--- 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;