From: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Date: Fri, 3 Oct 2014 14:09:49 +0000 (+0300)
Subject: staging: vt6655: Fixed else after return or break warning
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99fdb36ec3651f946122c0f6261738bf4f89b8ae;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

staging: vt6655: Fixed else after return or break warning

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>
---

diff --git a/drivers/staging/vt6655/vntwifi.c b/drivers/staging/vt6655/vntwifi.c
index 59f66fe47352..9cc3a67399ed 100644
--- a/drivers/staging/vt6655/vntwifi.c
+++ b/drivers/staging/vt6655/vntwifi.c
@@ -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