* [PATCH] rsi: remove redundant assignment
@ 2021-02-03 6:27 samirweng1979
2021-02-08 11:19 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: samirweng1979 @ 2021-02-03 6:27 UTC (permalink / raw)
To: amitkarwar, siva8118, kvalo, davem, kuba
Cc: linux-wireless, netdev, linux-kernel, wengjianfeng
From: wengjianfeng <wengjianfeng@yulong.com>
INVALID_QUEUE has been used as a return value,it is not necessary to
assign it to q_num,so just return INVALID_QUEUE.
Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
---
drivers/net/wireless/rsi/rsi_91x_core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/wireless/rsi/rsi_91x_core.c b/drivers/net/wireless/rsi/rsi_91x_core.c
index 2d49c5b..a48e616 100644
--- a/drivers/net/wireless/rsi/rsi_91x_core.c
+++ b/drivers/net/wireless/rsi/rsi_91x_core.c
@@ -193,8 +193,7 @@ static u8 rsi_core_determine_hal_queue(struct rsi_common *common)
if (recontend_queue)
goto get_queue_num;
- q_num = INVALID_QUEUE;
- return q_num;
+ return INVALID_QUEUE;
}
common->selected_qnum = q_num;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rsi: remove redundant assignment
2021-02-03 6:27 [PATCH] rsi: remove redundant assignment samirweng1979
@ 2021-02-08 11:19 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-02-08 11:19 UTC (permalink / raw)
To: samirweng1979
Cc: amitkarwar, siva8118, davem, kuba, linux-wireless, netdev,
linux-kernel, wengjianfeng
samirweng1979 <samirweng1979@163.com> wrote:
> From: wengjianfeng <wengjianfeng@yulong.com>
>
> INVALID_QUEUE has been used as a return value,it is not necessary to
> assign it to q_num,so just return INVALID_QUEUE.
>
> Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Patch applied to wireless-drivers-next.git, thanks.
d48aea6054d0 rsi: remove redundant assignment
--
https://patchwork.kernel.org/project/linux-wireless/patch/20210203062717.1228-1-samirweng1979@163.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-08 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 6:27 [PATCH] rsi: remove redundant assignment samirweng1979
2021-02-08 11:19 ` Kalle Valo
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).