staging: rtl8188eu: change return type to bool
Both rtw_is_cckrates_included() and rtw_is_cckratesonly_included() return true or false. Change the return type from uint to bool. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c93b22aaa
commit
a0cec709e1
|
@ -72,7 +72,7 @@ int rtw_get_bit_value_from_ieee_value(u8 val)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint rtw_is_cckrates_included(u8 *rate)
|
bool rtw_is_cckrates_included(u8 *rate)
|
||||||
{
|
{
|
||||||
while (*rate) {
|
while (*rate) {
|
||||||
u8 r = *rate & 0x7f;
|
u8 r = *rate & 0x7f;
|
||||||
|
@ -85,7 +85,7 @@ uint rtw_is_cckrates_included(u8 *rate)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint rtw_is_cckratesonly_included(u8 *rate)
|
bool rtw_is_cckratesonly_included(u8 *rate)
|
||||||
{
|
{
|
||||||
while (*rate) {
|
while (*rate) {
|
||||||
u8 r = *rate & 0x7f;
|
u8 r = *rate & 0x7f;
|
||||||
|
|
|
@ -767,9 +767,9 @@ int rtw_generate_ie(struct registry_priv *pregistrypriv);
|
||||||
|
|
||||||
int rtw_get_bit_value_from_ieee_value(u8 val);
|
int rtw_get_bit_value_from_ieee_value(u8 val);
|
||||||
|
|
||||||
uint rtw_is_cckrates_included(u8 *rate);
|
bool rtw_is_cckrates_included(u8 *rate);
|
||||||
|
|
||||||
uint rtw_is_cckratesonly_included(u8 *rate);
|
bool rtw_is_cckratesonly_included(u8 *rate);
|
||||||
|
|
||||||
int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
|
int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue