summaryrefslogtreecommitdiffstats
path: root/drivers/staging/winbond/mto.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-10-27 22:46:39 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:51:43 -0800
commit279b6ccc002f87e1c127f372f73c95d026fd1803 (patch)
treecb3dbab3e2b8c8bcaf7fc338b4d1c35e0db54bad /drivers/staging/winbond/mto.c
parent9ce9ed5d8d71c1aa43ba947944b655e5c164ef54 (diff)
downloadop-kernel-dev-279b6ccc002f87e1c127f372f73c95d026fd1803.zip
op-kernel-dev-279b6ccc002f87e1c127f372f73c95d026fd1803.tar.gz
Staging: w35und: remove true/false boolean macros
Use the kernel built-in true and false boolean values instead of duplicating them in the driver code. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/winbond/mto.c')
-rw-r--r--drivers/staging/winbond/mto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/winbond/mto.c b/drivers/staging/winbond/mto.c
index 70d2a50..f53db93 100644
--- a/drivers/staging/winbond/mto.c
+++ b/drivers/staging/winbond/mto.c
@@ -208,7 +208,7 @@ static int TotalTxPktRetry = 0;
static int TxPktPerAnt[3] = {0,0,0};
static int RXRSSIANT[3] ={-70,-70,-70};
static int TxPktRetryPerAnt[3] = {0,0,0};
-//static int TxDominateFlag=FALSE;
+//static int TxDominateFlag=false;
static u8 old_antenna[4]={1 ,0 ,1 ,0};
static int retryrate_rec[MTO_MAX_DATA_RATE_LEVELS];//this record the retry rate at different data rate
@@ -236,7 +236,7 @@ static RSSI2RATE RSSI2RateTbl[RSSI2RATE_SIZE] =
static u8 untogglecount;
static u8 last_rate_ant; //this is used for antenna backoff-hh
-u8 boSparseTxTraffic = FALSE;
+u8 boSparseTxTraffic = false;
void MTO_Init(MTO_FUNC_INPUT);
void AntennaToggleInitiator(MTO_FUNC_INPUT);
@@ -569,9 +569,9 @@ unsigned char TxDominate(int index)
tmp = TxPktPerAnt[index] + DTO_Rx_Info[0][index];
if(Divide(TxPktPerAnt[index]*100, tmp) > 40)
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}
unsigned char CmpTxRetryRate(int index1, int index2)
@@ -584,9 +584,9 @@ unsigned char CmpTxRetryRate(int index1, int index2)
#endif
if(tx_retry_rate1 > tx_retry_rate2)
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}
void GetFreshAntennaData(MTO_FUNC_INPUT)
OpenPOWER on IntegriCloud