staging: vt6655: Fixed else after return or break warning
authorYeliz Taneroglu <yeliztaneroglu@gmail.com>
Fri, 3 Oct 2014 14:09:49 +0000 (17:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:15 +0000 (10:29 +0800)
The following patch fixes the checkpatch.pl warning:

drivers/staging/vt6655/vntwifi.c warning: else is not generally useful after a break or return

Signed-off-by: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/vntwifi.c

index 59f66fe..9cc3a67 100644 (file)
@@ -578,8 +578,7 @@ VNTWIFIbyGetKeyCypher(
 
        if (bGroupKey)
                return pMgmt->byCSSGK;
-       else
-               return pMgmt->byCSSPK;
+       return pMgmt->byCSSPK;
 }
 
 bool
@@ -614,8 +613,7 @@ VNTWIFIwGetMaxSupportRate(
 
        if (pMgmt->eCurrentPHYMode == PHY_TYPE_11A)
                return RATE_6M;
-       else
-               return RATE_1M;
+       return RATE_1M;
 }
 
 void