[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190512121923.GA28044@hari-Inspiron-1545>
Date: Sun, 12 May 2019 17:49:23 +0530
From: Hariprasad Kelam <hariprasad.kelam@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Madhumitha Prabakaran <madhumithabiw@...il.com>,
Hans de Goede <hdegoede@...hat.com>,
Arnd Bergmann <arnd@...db.de>,
Emanuel Bennici <benniciemanuel78@...il.com>,
Dan Carpenter <dan.carpenter@...cle.com>,
Hariprasad Kelam <hariprasad.kelam@...il.com>,
Hardik Singh Rathore <hardiksingh.k@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
viswanath.barenkala@...il.com
Subject: [PATCH] staging: rtl8723bs: core fix warning "Comparison to bool"
fix below issue reported by coccicheck
drivers/staging/rtl8723bs/core/rtw_cmd.c:1741:7-17: WARNING: Comparison
to bool
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@...il.com>
---
drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index ecaa769..fcd26e1 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -1738,7 +1738,7 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter)
pstapriv->tim_bitmap &= ~BIT(0);
pstapriv->sta_dz_bitmap &= ~BIT(0);
- if (update_tim == true)
+ if (update_tim)
update_beacon(padapter, _TIM_IE_, NULL, true);
} else {/* re check again */
rtw_chk_hi_queue_cmd(padapter);
--
2.7.4
Powered by blists - more mailing lists