staging: bcm: Removed else which was not required after return
authorSarah Khan <sarahjmi07@gmail.com>
Mon, 6 Oct 2014 19:56:00 +0000 (01:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:14 +0000 (10:29 +0800)
WARNING:else is generally not required after return
checkpatch.pl warning in LeakyBucket.c

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

index d6b55f993b57eeed0687da5ea4d14e4d9a45cf6e..86b79d6438d4807434ded0dcc81ac5f4df316168 100644 (file)
@@ -82,13 +82,12 @@ static ULONG GetSFTokenCount(struct bcm_mini_adapter *Adapter, struct bcm_packet
        if (false != psSF->bValid && psSF->ucDirection) {
                if (0 != psSF->uiCurrentTokenCount) {
                        return psSF->uiCurrentTokenCount;
-               } else {
-                       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TOKEN_COUNTS,
-                                       DBG_LVL_ALL,
-                                       "Not enough tokens in queue %zd Available %u\n",
-                                       psSF-Adapter->PackInfo, psSF->uiCurrentTokenCount);
-                       psSF->uiPendedLast = 1;
                }
+               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TOKEN_COUNTS,
+                               DBG_LVL_ALL,
+                               "Not enough tokens in queue %zd Available %u\n",
+                               psSF-Adapter->PackInfo, psSF->uiCurrentTokenCount);
+               psSF->uiPendedLast = 1;
        } else {
                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TOKEN_COUNTS, DBG_LVL_ALL,
                                "IPAFF: Queue %zd not valid\n",