Commit 9cdb1928 authored by Saiyam Doshi's avatar Saiyam Doshi Committed by Greg Kroah-Hartman

staging: rtl8723bs: remove unneeded conversion to bool

Relational and logical operators evaluate to bool,
explicit conversion is overly verbose and unneeded.

This issue found using - Coccinelle (http://coccinelle.lip6.fr)
Signed-off-by: default avatarSaiyam Doshi <saiyamdoshi.in@gmail.com>
Link: https://lore.kernel.org/r/20190912145346.GA9013@SD.eic.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 53e3a7e1
...@@ -2922,7 +2922,8 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, ...@@ -2922,7 +2922,8 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid,
int i = 0; int i = 0;
do { do {
ret = _issue_probereq(padapter, pssid, da, ch, append_wps, wait_ms > 0?true:false); ret = _issue_probereq(padapter, pssid, da, ch, append_wps,
wait_ms > 0);
i++; i++;
...@@ -3513,7 +3514,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow ...@@ -3513,7 +3514,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
} }
do { do {
ret = _issue_nulldata(padapter, da, power_mode, wait_ms > 0?true:false); ret = _issue_nulldata(padapter, da, power_mode, wait_ms > 0);
i++; i++;
...@@ -3661,7 +3662,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int ...@@ -3661,7 +3662,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int
da = get_my_bssid(&(pmlmeinfo->network)); da = get_my_bssid(&(pmlmeinfo->network));
do { do {
ret = _issue_qos_nulldata(padapter, da, tid, wait_ms > 0?true:false); ret = _issue_qos_nulldata(padapter, da, tid, wait_ms > 0);
i++; i++;
...@@ -3769,7 +3770,7 @@ int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int ...@@ -3769,7 +3770,7 @@ int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int
int i = 0; int i = 0;
do { do {
ret = _issue_deauth(padapter, da, reason, wait_ms > 0?true:false); ret = _issue_deauth(padapter, da, reason, wait_ms > 0);
i++; i++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment