rtl8188eu: Replace all the alternative forms for bool

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2018-11-16 14:56:35 -06:00
parent 21b9be0939
commit 57a2db9e23
49 changed files with 406 additions and 413 deletions

View file

@ -3773,7 +3773,7 @@ static int
enum nl80211_iftype type,
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0))
u32 *flags,
#endif
#endif
struct vif_params *params)
{
int ret = 0;

View file

@ -1797,7 +1797,7 @@ exit:
* Return TRUE if c is null character
* FALSE otherwise.
*/
inline BOOLEAN is_null(char c)
inline bool is_null(char c)
{
if (c == '\0')
return _TRUE;
@ -1811,7 +1811,7 @@ inline BOOLEAN is_null(char c)
* Return TRUE if c is represent for EOL (end of line)
* FALSE otherwise.
*/
inline BOOLEAN is_eol(char c)
inline bool is_eol(char c)
{
if (c == '\r' || c == '\n')
return _TRUE;
@ -1825,7 +1825,7 @@ inline BOOLEAN is_eol(char c)
* Return TRUE if c is represent for space
* FALSE otherwise.
*/
inline BOOLEAN is_space(char c)
inline bool is_space(char c)
{
if (c == ' ' || c == '\t')
return _TRUE;
@ -1839,7 +1839,7 @@ inline BOOLEAN is_space(char c)
* Return TRUE if chTmp is represent for hex digit
* FALSE otherwise.
*/
inline BOOLEAN IsHexDigit(char chTmp)
inline bool IsHexDigit(char chTmp)
{
if ((chTmp >= '0' && chTmp <= '9') ||
(chTmp >= 'a' && chTmp <= 'f') ||
@ -1855,7 +1855,7 @@ inline BOOLEAN IsHexDigit(char chTmp)
* Return TRUE if chTmp is represent for alphabet
* FALSE otherwise.
*/
inline BOOLEAN is_alpha(char chTmp)
inline bool is_alpha(char chTmp)
{
if ((chTmp >= 'a' && chTmp <= 'z') ||
(chTmp >= 'A' && chTmp <= 'Z'))

View file

@ -585,9 +585,9 @@ static ssize_t proc_set_rx_info_msg(struct file *file, const char __user *buffer
if (buffer && !copy_from_user(tmp, buffer, count)) {
int num = sscanf(tmp, "%d", &phy_info_flag);
precvpriv->store_law_data_flag = (BOOLEAN) phy_info_flag;
precvpriv->store_law_data_flag = (bool) phy_info_flag;
/*RTW_INFO("precvpriv->store_law_data_flag = %d\n",( BOOLEAN )(precvpriv->store_law_data_flag));*/
/*RTW_INFO("precvpriv->store_law_data_flag = %d\n",( bool )(precvpriv->store_law_data_flag));*/
}
return count;
}