summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rsi
diff options
context:
space:
mode:
authorwengjianfeng <wengjianfeng@yulong.com>2021-02-03 07:27:17 +0100
committerKalle Valo <kvalo@codeaurora.org>2021-02-08 12:19:30 +0100
commitd48aea6054d0521b258471a5ff3ca827c6c54b09 (patch)
tree24ae8cab03cb721bba6d02c4c33f60fbf998a0a8 /drivers/net/wireless/rsi
parentmwl8k: assign value when defining variables (diff)
downloadlinux-d48aea6054d0521b258471a5ff3ca827c6c54b09.tar.xz
linux-d48aea6054d0521b258471a5ff3ca827c6c54b09.zip
rsi: remove redundant assignment
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> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210203062717.1228-1-samirweng1979@163.com
Diffstat (limited to 'drivers/net/wireless/rsi')
-rw-r--r--drivers/net/wireless/rsi/rsi_91x_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_core.c b/drivers/net/wireless/rsi/rsi_91x_core.c
index 2d49c5b5eefb..a48e616e0fb9 100644
--- a/drivers/net/wireless/rsi/rsi_91x_core.c
+++ b/drivers/net/wireless/rsi/rsi_91x_core.c
@@ -193,8 +193,7 @@ get_queue_num:
if (recontend_queue)
goto get_queue_num;
- q_num = INVALID_QUEUE;
- return q_num;
+ return INVALID_QUEUE;
}
common->selected_qnum = q_num;