mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
staging: rtl8723bs: remove redundant result variable
Return value from ips_netdrv_open() directly instead of taking this in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: CGEL ZTE <cgel.zte@gmail.com> Link: https://lore.kernel.org/r/20220110013240.644190-1-chi.minghao@zte.com.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8c2cffdec7
commit
8765a5bc44
1 changed files with 1 additions and 5 deletions
|
@ -922,11 +922,7 @@ static int ips_netdrv_open(struct adapter *padapter)
|
|||
|
||||
int rtw_ips_pwr_up(struct adapter *padapter)
|
||||
{
|
||||
int result;
|
||||
|
||||
result = ips_netdrv_open(padapter);
|
||||
|
||||
return result;
|
||||
return ips_netdrv_open(padapter);
|
||||
}
|
||||
|
||||
void rtw_ips_pwr_down(struct adapter *padapter)
|
||||
|
|
Loading…
Reference in a new issue