* [PATCH] mwl8k: assign value when defining variables
@ 2021-02-03 6:16 samirweng1979
2021-02-08 11:19 ` Kalle Valo
0 siblings, 1 reply; 3+ messages in thread
From: samirweng1979 @ 2021-02-03 6:16 UTC (permalink / raw)
To: buytenh, kvalo, davem, kuba
Cc: linux-wireless, netdev, linux-kernel, wengjianfeng
From: wengjianfeng <wengjianfeng@yulong.com>
define refilled and then assign value to it, which should do
that at the same time.
Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
---
drivers/net/wireless/marvell/mwl8k.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c
index abf3b02..435ef77 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;
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mwl8k: assign value when defining variables
2021-02-03 6:16 [PATCH] mwl8k: assign value when defining variables samirweng1979
@ 2021-02-08 11:19 ` Kalle Valo
0 siblings, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2021-02-08 11:19 UTC (permalink / raw)
To: samirweng1979
Cc: buytenh, davem, kuba, linux-wireless, netdev, linux-kernel, wengjianfeng
samirweng1979 <samirweng1979@163.com> wrote:
> From: wengjianfeng <wengjianfeng@yulong.com>
>
> define refilled and then assign value to it, which should do
> that at the same time.
>
> Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Patch applied to wireless-drivers-next.git, thanks.
bb779d476ff7 mwl8k: assign value when defining variables
--
https://patchwork.kernel.org/project/linux-wireless/patch/20210203061625.588-1-samirweng1979@163.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mwl8k: assign value when defining variables
@ 2021-01-30 7:27 samirweng1979
0 siblings, 0 replies; 3+ messages in thread
From: samirweng1979 @ 2021-01-30 7:27 UTC (permalink / raw)
To: buytenh, kvalo, davem, kuba
Cc: linux-wireless, netdev, linux-kernel, wengjianfeng
From: wengjianfeng <wengjianfeng@yulong.com>
define refilled and then assign value to it, which should do
at the same time.
Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
---
drivers/net/wireless/marvell/mwl8k.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c
index abf3b02..435ef77 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;
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-08 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 6:16 [PATCH] mwl8k: assign value when defining variables samirweng1979
2021-02-08 11:19 ` Kalle Valo
-- strict thread matches above, loose matches on Subject: below --
2021-01-30 7:27 samirweng1979
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).