staging: bcm: Fixed else after return or break warning
authorDilek Uzulmez <dilekuzulmez@gmail.com>
Tue, 7 Oct 2014 11:37:31 +0000 (14:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:14 +0000 (10:29 +0800)
This patch fixes checkpatch.pl warning in files of bcm
WARNING : else is not generally useful after a break or return

Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/InterfaceMisc.c

index e5bcfec2a6cfee5d512ab44bf10e7b070850f0b2..1f31b8f058846a1cd80806a180b75bbc09784785 100644 (file)
@@ -102,12 +102,11 @@ int InterfaceWRM(struct bcm_interface_adapter *psIntfAdapter,
                                DBG_LVL_ALL, "WRM failed status :%d", retval);
                psIntfAdapter->psAdapter->DeviceAccess = false;
                return retval;
-       } else {
-               psIntfAdapter->psAdapter->DeviceAccess = false;
-               BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM,
-                               DBG_LVL_ALL, "WRM sent %d", retval);
-               return STATUS_SUCCESS;
        }
+       psIntfAdapter->psAdapter->DeviceAccess = false;
+       BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM,
+                       DBG_LVL_ALL, "WRM sent %d", retval);
+       return STATUS_SUCCESS;
 }
 
 int BcmRDM(void *arg,