Staging: vt6656: Removing else after break statement to fix warning
authorRajbinder Brar <brar.rajbinder@gmail.com>
Wed, 17 Sep 2014 15:57:03 +0000 (21:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:01:22 +0000 (17:01 -0700)
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>
drivers/staging/vt6656/baseband.c

index e6c7b604ede94e0b004a66fe0dc3889c997294da..26b16772fc40b9690c7a54c15f1b2a18a07df8a0 100644 (file)
@@ -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;
 }
 
 /*