Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc394a39 authored by Sarah Khan's avatar Sarah Khan Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: Fixed else not required after return



WARNING: Else generally not required after return
checkpatch.pl warning in hal_init.c
Fixed by removing else

Signed-off-by: default avatarSarah Khan <sarahjmi07@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4eaef856
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -389,10 +389,8 @@ uint rtl871x_hal_init(struct _adapter *padapter)
	padapter->hw_init_completed = false;
	padapter->hw_init_completed = false;
	if (padapter->halpriv.hal_bus_init == NULL)
	if (padapter->halpriv.hal_bus_init == NULL)
		return _FAIL;
		return _FAIL;
	else {
	if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS)
	if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS)
		return _FAIL;
		return _FAIL;
	}
	if (rtl8712_hal_init(padapter) == _SUCCESS)
	if (rtl8712_hal_init(padapter) == _SUCCESS)
		padapter->hw_init_completed = true;
		padapter->hw_init_completed = true;
	else {
	else {