mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
staging: rtl8723bs: replace rtw_linked_check() return type to bool
Function rtw_linked_check() always return 'bool' value, but it's type 'int'. Replace 'int' with 'bool' to make it more accurate. Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com> Link: https://patch.msgid.link/20260309201257.16984-5-nikolayof23@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c776297d23
commit
7f9e3268fb
@@ -2585,7 +2585,7 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network)
|
||||
}
|
||||
}
|
||||
|
||||
signed int rtw_linked_check(struct adapter *padapter)
|
||||
bool rtw_linked_check(struct adapter *padapter)
|
||||
{
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) ||
|
||||
check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE | WIFI_ADHOC_MASTER_STATE)) {
|
||||
|
||||
@@ -364,7 +364,7 @@ extern struct wlan_network *_rtw_find_network(struct __queue *scanned_queue, u8
|
||||
|
||||
bool rtw_if_up(struct adapter *padapter);
|
||||
|
||||
signed int rtw_linked_check(struct adapter *padapter);
|
||||
bool rtw_linked_check(struct adapter *padapter);
|
||||
|
||||
u8 *rtw_get_capability_from_ie(u8 *ie);
|
||||
u8 *rtw_get_beacon_interval_from_ie(u8 *ie);
|
||||
|
||||
Reference in New Issue
Block a user