diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2013-08-27 04:56:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-27 19:49:29 -0400 |
commit | 0bddd303f416c4abcfd64cedfa46880163c1d9c6 (patch) | |
tree | 7bb6f1d54a3ec89a40f91393a1f555f0ff870acc | |
parent | e7f1c9320ee6b596d58c4b2baeb1bbdfb1f0d9af (diff) |
staging: vt6656: rxtx.c: s_vFillRTSHead change if/else to switch on byPktype
Allowing fall through where necessary.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/vt6656/rxtx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index e97bc4098f89..e049a34ad91f 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c | |||
@@ -730,7 +730,9 @@ static void s_vFillRTSHead(struct vnt_private *pDevice, u8 byPktType, | |||
730 | * into account. | 730 | * into account. |
731 | * Otherwise, we need to modified codes for them. | 731 | * Otherwise, we need to modified codes for them. |
732 | */ | 732 | */ |
733 | if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) { | 733 | switch (byPktType) { |
734 | case PK_TYPE_11GB: | ||
735 | case PK_TYPE_11GA: | ||
734 | if (byFBOption == AUTO_FB_NONE) | 736 | if (byFBOption == AUTO_FB_NONE) |
735 | vnt_rxtx_rts_g_head(pDevice, &head->rts_g, | 737 | vnt_rxtx_rts_g_head(pDevice, &head->rts_g, |
736 | psEthHeader, byPktType, cbFrameLength, | 738 | psEthHeader, byPktType, cbFrameLength, |
@@ -739,7 +741,8 @@ static void s_vFillRTSHead(struct vnt_private *pDevice, u8 byPktType, | |||
739 | vnt_rxtx_rts_g_fb_head(pDevice, &head->rts_g_fb, | 741 | vnt_rxtx_rts_g_fb_head(pDevice, &head->rts_g_fb, |
740 | psEthHeader, byPktType, cbFrameLength, | 742 | psEthHeader, byPktType, cbFrameLength, |
741 | bNeedAck, wCurrentRate, byFBOption); | 743 | bNeedAck, wCurrentRate, byFBOption); |
742 | } else if (byPktType == PK_TYPE_11A) { | 744 | break; |
745 | case PK_TYPE_11A: | ||
743 | if (byFBOption == AUTO_FB_NONE) | 746 | if (byFBOption == AUTO_FB_NONE) |
744 | vnt_rxtx_rts_ab_head(pDevice, &head->rts_ab, | 747 | vnt_rxtx_rts_ab_head(pDevice, &head->rts_ab, |
745 | psEthHeader, byPktType, cbFrameLength, | 748 | psEthHeader, byPktType, cbFrameLength, |
@@ -748,7 +751,8 @@ static void s_vFillRTSHead(struct vnt_private *pDevice, u8 byPktType, | |||
748 | vnt_rxtx_rts_a_fb_head(pDevice, &head->rts_a_fb, | 751 | vnt_rxtx_rts_a_fb_head(pDevice, &head->rts_a_fb, |
749 | psEthHeader, byPktType, cbFrameLength, | 752 | psEthHeader, byPktType, cbFrameLength, |
750 | bNeedAck, wCurrentRate, byFBOption); | 753 | bNeedAck, wCurrentRate, byFBOption); |
751 | } else if (byPktType == PK_TYPE_11B) { | 754 | break; |
755 | case PK_TYPE_11B: | ||
752 | vnt_rxtx_rts_ab_head(pDevice, &head->rts_ab, | 756 | vnt_rxtx_rts_ab_head(pDevice, &head->rts_ab, |
753 | psEthHeader, byPktType, cbFrameLength, | 757 | psEthHeader, byPktType, cbFrameLength, |
754 | bNeedAck, wCurrentRate, byFBOption); | 758 | bNeedAck, wCurrentRate, byFBOption); |