Re: [PATCH] rtw88: remove unnecessary variable

2021-03-15 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > 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. >

[PATCH] rtw88: remove unnecessary variable

2021-02-23 Thread samirweng1979
From: wengjianfeng 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 --- d