staging: vt6656: rxtx.c s_vFillRTSHead PK_TYPE_11A allow fall through AUTO_FB_NONE
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 27 Aug 2013 08:58:21 +0000 (09:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Aug 2013 23:49:29 +0000 (16:49 -0700)
byFBOption == AUTO_FB_NONE (0) is the same as PK_TYPE_11B

Reverse if condition to break and allow fall through.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c

index e049a34ad91f2092a635da804040b4fdf07ed6a5..463a8d5a096519cda9f5974cd88b1453644bafee 100644 (file)
@@ -743,15 +743,12 @@ static void s_vFillRTSHead(struct vnt_private *pDevice, u8 byPktType,
                                bNeedAck, wCurrentRate, byFBOption);
                break;
        case PK_TYPE_11A:
-               if (byFBOption == AUTO_FB_NONE)
-                       vnt_rxtx_rts_ab_head(pDevice, &head->rts_ab,
-                               psEthHeader, byPktType, cbFrameLength,
-                               bNeedAck, wCurrentRate, byFBOption);
-               else
+               if (byFBOption) {
                        vnt_rxtx_rts_a_fb_head(pDevice, &head->rts_a_fb,
                                psEthHeader, byPktType, cbFrameLength,
                                bNeedAck, wCurrentRate, byFBOption);
-               break;
+                       break;
+               }
        case PK_TYPE_11B:
                vnt_rxtx_rts_ab_head(pDevice, &head->rts_ab,
                        psEthHeader, byPktType, cbFrameLength,