staging: rtl8712: Fixed else not required after return
authorSarah Khan <sarahjmi07@gmail.com>
Thu, 2 Oct 2014 19:41:35 +0000 (01:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 18:59:40 +0000 (11:59 -0700)
WARNING: Else generally not required after return
checkpatch.pl warning in hal_init.c
Fixed by removing else

Signed-off-by: Sarah Khan <sarahjmi07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/hal_init.c

index 81cd654967896fe444b877e5809a985948cbaa2f..1d6ade05fa1878ccbfa66a49fe0b05f0c02a43ad 100644 (file)
@@ -389,10 +389,8 @@ uint rtl871x_hal_init(struct _adapter *padapter)
        padapter->hw_init_completed = false;
        if (padapter->halpriv.hal_bus_init == NULL)
                return _FAIL;
-       else {
-               if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS)
-                       return _FAIL;
-       }
+       if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS)
+               return _FAIL;
        if (rtl8712_hal_init(padapter) == _SUCCESS)
                padapter->hw_init_completed = true;
        else {