]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: remove unnecessary variable
authorwengjianfeng <wengjianfeng@yulong.com>
Tue, 23 Feb 2021 07:54:38 +0000 (15:54 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Mar 2021 08:23:11 +0000 (10:23 +0200)
commitdda27c06902af37bd7466172e777ee06a7501eb4
tree78146c78bba134e61a0bfd666d1bfd6d4ed6edc0
parent082b96dd7ab2751b70c2a99620db620cf7efce29
rtw88: remove unnecessary variable

The variable ret is defined at the beginning and initialized
to 0 until the function returns ret, and the variable ret is
not reassigned.Therefore, we do not need to define the variable
ret, just return 0 directly at the end of the function.

Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210223075438.13676-1-samirweng1979@163.com
drivers/net/wireless/realtek/rtw88/main.c