Commit 649520bb authored by Teodora Baluta's avatar Teodora Baluta Committed by Greg Kroah-Hartman

staging: vt6655: fix comparison of bool to 0/1

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: default avatarTeodora Baluta <teobaluta@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0fd682f6
...@@ -435,7 +435,7 @@ s_uGetDataDuration( ...@@ -435,7 +435,7 @@ s_uGetDataDuration(
switch (byDurType) { switch (byDurType) {
case DATADUR_B: //DATADUR_B 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) { if (bNeedAck) {
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate); uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
return pDevice->uSIFS + uAckTime; return pDevice->uSIFS + uAckTime;
...@@ -458,7 +458,7 @@ s_uGetDataDuration( ...@@ -458,7 +458,7 @@ s_uGetDataDuration(
break; break;
case DATADUR_A: //DATADUR_A 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) { if (bNeedAck) {
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate); uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
return pDevice->uSIFS + uAckTime; return pDevice->uSIFS + uAckTime;
...@@ -481,7 +481,7 @@ s_uGetDataDuration( ...@@ -481,7 +481,7 @@ s_uGetDataDuration(
break; break;
case DATADUR_A_F0: //DATADUR_A_F0 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) { if (bNeedAck) {
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate); uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
return pDevice->uSIFS + uAckTime; return pDevice->uSIFS + uAckTime;
...@@ -523,7 +523,7 @@ s_uGetDataDuration( ...@@ -523,7 +523,7 @@ s_uGetDataDuration(
break; break;
case DATADUR_A_F1: //DATADUR_A_F1 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) { if (bNeedAck) {
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate); uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
return pDevice->uSIFS + uAckTime; return pDevice->uSIFS + uAckTime;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment