Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: vt6655: Remove unnecessary equality checks in rxtx.c

The unnecessary equality checks for bool variable are removed in rxtx.c.
These changes were detected with the help of coccinelle tool

Signed-off-by: Harisangam Sharvari <sharisan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Harisangam Sharvari and committed by
Greg Kroah-Hartman
441b3e45 86ea8acc

+4 -4
+4 -4
drivers/staging/vt6655/rxtx.c
··· 1093 1093 if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) {/* 802.11g packet */ 1094 1094 1095 1095 if (byFBOption == AUTO_FB_NONE) { 1096 - if (bRTS == true) {/* RTS_need */ 1096 + if (bRTS) {/* RTS_need */ 1097 1097 pvRrvTime = (void *)(pbyTxBufferAddr + wTxBufSize); 1098 1098 pMICHDR = (struct vnt_mic_hdr *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_rts)); 1099 1099 pvRTS = (void *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_rts) + cbMICHDR); ··· 1115 1115 } 1116 1116 } else { 1117 1117 /* Auto Fall Back */ 1118 - if (bRTS == true) {/* RTS_need */ 1118 + if (bRTS) {/* RTS_need */ 1119 1119 pvRrvTime = (void *)(pbyTxBufferAddr + wTxBufSize); 1120 1120 pMICHDR = (struct vnt_mic_hdr *) (pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_rts)); 1121 1121 pvRTS = (void *) (pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_rts) + cbMICHDR); ··· 1138 1138 } else {/* 802.11a/b packet */ 1139 1139 1140 1140 if (byFBOption == AUTO_FB_NONE) { 1141 - if (bRTS == true) { 1141 + if (bRTS) { 1142 1142 pvRrvTime = (void *)(pbyTxBufferAddr + wTxBufSize); 1143 1143 pMICHDR = (struct vnt_mic_hdr *) (pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_ab)); 1144 1144 pvRTS = (void *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_ab) + cbMICHDR); ··· 1158 1158 } 1159 1159 } else { 1160 1160 /* Auto Fall Back */ 1161 - if (bRTS == true) { /* RTS_need */ 1161 + if (bRTS) { /* RTS_need */ 1162 1162 pvRrvTime = (void *)(pbyTxBufferAddr + wTxBufSize); 1163 1163 pMICHDR = (struct vnt_mic_hdr *) (pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_ab)); 1164 1164 pvRTS = (void *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_ab) + cbMICHDR);