staging: vt6655: Remove unnecessary else after return
authorDilek Uzulmez <dilekuzulmez@gmail.com>
Wed, 8 Oct 2014 12:46:53 +0000 (15:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:15 +0000 (10:29 +0800)
This patch fixes checkpatch.pl warning in files of vt6655
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/vt6655/baseband.c

index de54923e88614d5859fa8828f9b1d3cd5db37e8b..b8a64c07b97a7f9a41f843c42bf60bd73dcab1b2 100644 (file)
@@ -1792,18 +1792,17 @@ BBuGetFrameTime(
                        uFrameTime++;
 
                return uPreamble + uFrameTime;
-       } else {
-               uFrameTime = (cbFrameLength * 8 + 22) / uRate; /* ???????? */
-               uTmp = ((uFrameTime * uRate) - 22) / 8;
-               if (cbFrameLength != uTmp)
-                       uFrameTime++;
+       }
+       uFrameTime = (cbFrameLength * 8 + 22) / uRate; /* ???????? */
+       uTmp = ((uFrameTime * uRate) - 22) / 8;
+       if (cbFrameLength != uTmp)
+               uFrameTime++;
 
-               uFrameTime = uFrameTime * 4;    /* ??????? */
-               if (byPktType != PK_TYPE_11A)
-                       uFrameTime += 6;     /* ?????? */
+       uFrameTime = uFrameTime * 4;    /* ??????? */
+       if (byPktType != PK_TYPE_11A)
+               uFrameTime += 6;     /* ?????? */
 
-               return 20 + uFrameTime; /* ?????? */
-       }
+       return 20 + uFrameTime; /* ?????? */
 }
 
 /*