Staging: bcm: Removed unnecessary else.
authorHeena Sirwani <heenasirwani@gmail.com>
Mon, 29 Sep 2014 08:21:51 +0000 (13:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 16:33:46 +0000 (09:33 -0700)
The following patch fixes the checkpatch.pl warning:
WARNING: else is not generally useful after a break or return.

Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/InterfaceIdleMode.c

index e075f0e8cceaf2878a658fdde86fce96d5c27fbe..612c89fba341139bb8d9cc39e7bc611524f1518b 100644 (file)
@@ -188,8 +188,8 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter,
                        5000);
                if (status)
                        return status;
-               else
-                       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS,
+
+               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS,
                                IDLE_MODE, DBG_LVL_ALL,
                                "NOB Sent down :%d", lenwritten);