summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/baseband.c
diff options
context:
space:
mode:
authorDilek Uzulmez2014-10-08 14:46:53 +0200
committerGreg Kroah-Hartman2014-10-20 04:29:15 +0200
commit14cd1df4baf1f6f2dd0b521ec99afa151427b06b (patch)
tree6135a51c4f3c7fb7cc8542a676e2cf91a413a6a4 /drivers/staging/vt6655/baseband.c
parentstaging: vt6655: fix do not use // c99 comments. (diff)
downloadkernel-qcow2-linux-14cd1df4baf1f6f2dd0b521ec99afa151427b06b.tar.gz
kernel-qcow2-linux-14cd1df4baf1f6f2dd0b521ec99afa151427b06b.tar.xz
kernel-qcow2-linux-14cd1df4baf1f6f2dd0b521ec99afa151427b06b.zip
staging: vt6655: Remove unnecessary else after return
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>
Diffstat (limited to 'drivers/staging/vt6655/baseband.c')
-rw-r--r--drivers/staging/vt6655/baseband.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index de54923e8861..b8a64c07b97a 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -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; /* ?????? */
}
/*