mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Change _FALSE and _TRUE to false and true
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3d0ee1321a
commit
9cef34aa09
69 changed files with 2493 additions and 3604 deletions
|
@ -105,16 +105,16 @@ void rtl8188eu_set_intf_ops(struct _io_ops *pops);
|
|||
|
||||
/*
|
||||
* Increase and check if the continual_urb_error of this @param dvobjprive is larger than MAX_CONTINUAL_URB_ERR
|
||||
* @return _TRUE:
|
||||
* @return _FALSE:
|
||||
* @return true:
|
||||
* @return false:
|
||||
*/
|
||||
static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj)
|
||||
{
|
||||
int ret = _FALSE;
|
||||
int ret = false;
|
||||
int value;
|
||||
if ( (value=ATOMIC_INC_RETURN(&dvobj->continual_urb_error)) > MAX_CONTINUAL_URB_ERR) {
|
||||
DBG_88E("[dvobj:%p][ERROR] continual_urb_error:%d > %d\n", dvobj, value, MAX_CONTINUAL_URB_ERR);
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
} else {
|
||||
//DBG_88E("[dvobj:%p] continual_urb_error:%d\n", dvobj, value);
|
||||
}
|
||||
|
@ -134,13 +134,13 @@ static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
|
|||
|
||||
static inline u8 rtw_usb_bulk_size_boundary(_adapter * padapter,int buf_len)
|
||||
{
|
||||
u8 rst = _TRUE;
|
||||
u8 rst = true;
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
|
||||
|
||||
if (pdvobjpriv->ishighspeed == _TRUE)
|
||||
rst = (0 == (buf_len) % USB_HIGH_SPEED_BULK_SIZE)?_TRUE:_FALSE;
|
||||
if (pdvobjpriv->ishighspeed == true)
|
||||
rst = (0 == (buf_len) % USB_HIGH_SPEED_BULK_SIZE)?true:false;
|
||||
else
|
||||
rst = (0 == (buf_len) % USB_FULL_SPEED_BULK_SIZE)?_TRUE:_FALSE;
|
||||
rst = (0 == (buf_len) % USB_FULL_SPEED_BULK_SIZE)?true:false;
|
||||
return rst;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue