diff options
author | Rajbinder Brar <brar.rajbinder@gmail.com> | 2014-09-17 21:27:03 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 17:01:22 -0700 |
commit | b377ed4cce004d7c3dbd92cffdbf2aa21d28e2e6 (patch) | |
tree | a77a5e8374e0772d0fea80314892f6e00e1b2227 /drivers/staging/vt6656 | |
parent | dbc6ee63d4355a51fd84ee8ebf127763180b1585 (diff) | |
download | linux-stable-b377ed4cce004d7c3dbd92cffdbf2aa21d28e2e6.tar.gz linux-stable-b377ed4cce004d7c3dbd92cffdbf2aa21d28e2e6.tar.bz2 linux-stable-b377ed4cce004d7c3dbd92cffdbf2aa21d28e2e6.zip |
Staging: vt6656: Removing else after break statement to fix warning
This patch fixes the checkpatch.pl warning in baseband.c file
WARNING: else is not useful after a break or return
Signed-off-by: Rajbinder Brar <brar.rajbinder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/baseband.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c index e6c7b604ede9..26b16772fc40 100644 --- a/drivers/staging/vt6656/baseband.c +++ b/drivers/staging/vt6656/baseband.c @@ -167,20 +167,18 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type, frame_time++; return preamble + frame_time; - } else { - frame_time = (frame_length * 8 + 22) / rate; - tmp = ((frame_time * rate) - 22) / 8; - - if (frame_length != tmp) - frame_time++; + } + frame_time = (frame_length * 8 + 22) / rate; + tmp = ((frame_time * rate) - 22) / 8; - frame_time = frame_time * 4; + if (frame_length != tmp) + frame_time++; - if (pkt_type != PK_TYPE_11A) - frame_time += 6; + frame_time = frame_time * 4; - return 20 + frame_time; - } + if (pkt_type != PK_TYPE_11A) + frame_time += 6; + return 20 + frame_time; } /* |