LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] staging :rtl8723bs :core fix WARNING: Comparison to bool
@ 2019-05-12 16:53 Hariprasad Kelam
0 siblings, 0 replies; 3+ messages in thread
From: Hariprasad Kelam @ 2019-05-12 16:53 UTC (permalink / raw)
To: Greg Kroah-Hartman, Hans de Goede, Arnd Bergmann,
Hariprasad Kelam, Hardik Singh Rathore, Jia-Ju Bai, devel,
linux-kernel
fix below warning reported by coccicheck
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:181:5-40: WARNING:
Comparison to bool
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index 5c468c5..c337a528 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -178,7 +178,7 @@ void rtw_ps_processor(struct adapter *padapter)
if (pwrpriv->ips_mode_req == IPS_NONE)
goto exit;
- if (rtw_pwr_unassociated_idle(padapter) == false)
+ if (!rtw_pwr_unassociated_idle(padapter))
goto exit;
if ((pwrpriv->rf_pwrstate == rf_on) && ((pwrpriv->pwr_state_check_cnts%4) == 0)) {
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: core fix warning Comparison to bool
2019-05-12 12:24 [PATCH] staging: rtl8723bs: core fix warning " Hariprasad Kelam
@ 2019-05-13 8:43 ` Greg Kroah-Hartman
0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2019-05-13 8:43 UTC (permalink / raw)
To: Hariprasad Kelam
Cc: Nishka Dasgupta, Colin Ian King, Arnd Bergmann,
Hardik Singh Rathore, Payal Kshirsagar, Emanuel Bennici, devel,
linux-kernel, viswanath.barenkala
On Sun, May 12, 2019 at 05:54:49PM +0530, Hariprasad Kelam wrote:
> fix below issue reported by coccicheck
>
> drivers/staging/rtl8723bs/core/rtw_mlme.c:1675:6-10: WARNING: Comparison
> to bool
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
> ---
> drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
You sent 3 patches that do different things, yet have the same subject
line :(
Please fix up and send as a numbered patch series, or better yet, fix
the same thing in the whole file all at ince.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] staging: rtl8723bs: core fix warning Comparison to bool
@ 2019-05-12 12:24 Hariprasad Kelam
2019-05-13 8:43 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Hariprasad Kelam @ 2019-05-12 12:24 UTC (permalink / raw)
To: Greg Kroah-Hartman, Nishka Dasgupta, Hariprasad Kelam,
Colin Ian King, Arnd Bergmann, Hardik Singh Rathore,
Payal Kshirsagar, Emanuel Bennici, devel, linux-kernel,
viswanath.barenkala
fix below issue reported by coccicheck
drivers/staging/rtl8723bs/core/rtw_mlme.c:1675:6-10: WARNING: Comparison
to bool
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index 5f78f1e..d26d8cf 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -1672,7 +1672,7 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf)
roam_target = pmlmepriv->roam_network;
}
- if (roam == true) {
+ if (roam) {
if (rtw_to_roam(adapter) > 0)
rtw_dec_to_roam(adapter); /* this stadel_event is caused by roaming, decrease to_roam */
else if (rtw_to_roam(adapter) == 0)
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-13 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-12 16:53 [PATCH] staging :rtl8723bs :core fix WARNING: Comparison to bool Hariprasad Kelam
-- strict thread matches above, loose matches on Subject: below --
2019-05-12 12:24 [PATCH] staging: rtl8723bs: core fix warning " Hariprasad Kelam
2019-05-13 8:43 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).