diff options
author | wengjianfeng <wengjianfeng@yulong.com> | 2021-02-03 07:27:17 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-02-08 12:19:30 +0100 |
commit | d48aea6054d0521b258471a5ff3ca827c6c54b09 (patch) | |
tree | 24ae8cab03cb721bba6d02c4c33f60fbf998a0a8 /drivers/net/wireless/rsi | |
parent | mwl8k: assign value when defining variables (diff) | |
download | linux-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.c | 3 |
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; |