diff options
author | Jing Yangyang <jing.yangyang@zte.com.cn> | 2021-08-24 09:34:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-27 11:38:40 +0300 |
commit | 62dbd849e03ce2cb2fb605ed7a6ca93b42cc99f4 (patch) | |
tree | 9942ae0d8478e5dea2ba0fc8f4117f139c424e4f /drivers | |
parent | ce6a7007048b0abcf263a2b43a63d18614802e53 (diff) | |
download | linux-62dbd849e03ce2cb2fb605ed7a6ca93b42cc99f4.tar.xz |
staging: r8188eu: remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: Pavel Skripkin <paskripkin@gmail.com>
Acked-by: Michael Straube <straube.linux@gmail.com>
Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Link: https://lore.kernel.org/r/20210824063443.59724-1-deng.changcheng@zte.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_mlme_ext.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 508ef1d330a1..5a472a4954b0 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -3758,7 +3758,7 @@ int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt, int wait u32 start = jiffies; do { - ret = _issue_probereq_p2p(adapter, da, wait_ms > 0 ? true : false); + ret = _issue_probereq_p2p(adapter, da, wait_ms > 0); i++; @@ -4890,7 +4890,7 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u32 start = jiffies; do { - ret = _issue_probereq(padapter, pssid, da, wait_ms > 0 ? true : false); + ret = _issue_probereq(padapter, pssid, da, wait_ms > 0); i++; @@ -5605,7 +5605,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow da = get_my_bssid(&pmlmeinfo->network); do { - ret = _issue_nulldata(padapter, da, power_mode, wait_ms > 0 ? true : false); + ret = _issue_nulldata(padapter, da, power_mode, wait_ms > 0); i++; @@ -5728,7 +5728,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int da = get_my_bssid(&pmlmeinfo->network); do { - ret = _issue_qos_nulldata(padapter, da, tid, wait_ms > 0 ? true : false); + ret = _issue_qos_nulldata(padapter, da, tid, wait_ms > 0); i++; @@ -5839,7 +5839,7 @@ int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int u32 start = jiffies; do { - ret = _issue_deauth(padapter, da, reason, wait_ms > 0 ? true : false); + ret = _issue_deauth(padapter, da, reason, wait_ms > 0); i++; |