staging: vt6655: fix comparison of bool to 0/1
authorTeodora Baluta <teobaluta@gmail.com>
Sun, 10 Nov 2013 15:12:44 +0000 (17:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 19:15:08 +0000 (11:15 -0800)
This patch corrects comparison of bool to 0/1 for file
drivers/staging/vt6655/rxtx.c. The following type of coccinelle detected
warnings are silenced:

WARNING: Comparison of bool to 0/1

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/rxtx.c

index 3a2661e2b27c42b8978f5ffb621d438e4b4f0725..182c53ee66da74cfd18130f63d5262bfabd17e2d 100644 (file)
@@ -435,7 +435,7 @@ s_uGetDataDuration(
 
        switch (byDurType) {
        case DATADUR_B:    //DATADUR_B
-               if (((uMACfragNum == 1)) || (bLastFrag == 1)) {//Non Frag or Last Frag
+               if (((uMACfragNum == 1)) || bLastFrag) {//Non Frag or Last Frag
                        if (bNeedAck) {
                                uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
                                return pDevice->uSIFS + uAckTime;
@@ -458,7 +458,7 @@ s_uGetDataDuration(
                break;
 
        case DATADUR_A:    //DATADUR_A
-               if (((uMACfragNum == 1)) || (bLastFrag == 1)) {//Non Frag or Last Frag
+               if (((uMACfragNum == 1)) || bLastFrag) {//Non Frag or Last Frag
                        if (bNeedAck) {
                                uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
                                return pDevice->uSIFS + uAckTime;
@@ -481,7 +481,7 @@ s_uGetDataDuration(
                break;
 
        case DATADUR_A_F0:    //DATADUR_A_F0
-               if (((uMACfragNum == 1)) || (bLastFrag == 1)) {//Non Frag or Last Frag
+               if (((uMACfragNum == 1)) || bLastFrag) {//Non Frag or Last Frag
                        if (bNeedAck) {
                                uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
                                return pDevice->uSIFS + uAckTime;
@@ -523,7 +523,7 @@ s_uGetDataDuration(
                break;
 
        case DATADUR_A_F1:    //DATADUR_A_F1
-               if (((uMACfragNum == 1)) || (bLastFrag == 1)) {//Non Frag or Last Frag
+               if (((uMACfragNum == 1)) || bLastFrag) {//Non Frag or Last Frag
                        if (bNeedAck) {
                                uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
                                return pDevice->uSIFS + uAckTime;