All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning
@ 2020-09-10 13:59 Zheng Bin
  2020-09-10 13:59 ` [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c Zheng Bin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zheng Bin @ 2020-09-10 13:59 UTC (permalink / raw)
  To: pkshih, kvalo, davem, kuba, linux-wireless, netdev, linux-kernel
  Cc: yi.zhang, zhengbin13

Zheng Bin (3):
  rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c
  rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c
  rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c

 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c  | 12 ++++++------
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c |  2 +-
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

--
2.26.0.106.g9fadedd


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c
  2020-09-10 13:59 [PATCH -next 0/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning Zheng Bin
@ 2020-09-10 13:59 ` Zheng Bin
  2020-09-16  6:11   ` Kalle Valo
  2020-09-10 13:59 ` [PATCH -next 2/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c Zheng Bin
  2020-09-10 13:59 ` [PATCH -next 3/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c Zheng Bin
  2 siblings, 1 reply; 5+ messages in thread
From: Zheng Bin @ 2020-09-10 13:59 UTC (permalink / raw)
  To: pkshih, kvalo, davem, kuba, linux-wireless, netdev, linux-kernel
  Cc: yi.zhang, zhengbin13

Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c:1584:14-18: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
index 63ec5a20b67b..38d4432767e8 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
@@ -1581,7 +1581,7 @@ static void _rtl88e_phy_path_adda_on(struct ieee80211_hw *hw,
 	u32 i;

 	pathon = is_patha_on ? 0x04db25a4 : 0x0b1b25a4;
-	if (false == is2t) {
+	if (!is2t) {
 		pathon = 0x0bdb25a0;
 		rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0b1b25a0);
 	} else {
--
2.26.0.106.g9fadedd


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH -next 2/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c
  2020-09-10 13:59 [PATCH -next 0/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning Zheng Bin
  2020-09-10 13:59 ` [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c Zheng Bin
@ 2020-09-10 13:59 ` Zheng Bin
  2020-09-10 13:59 ` [PATCH -next 3/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c Zheng Bin
  2 siblings, 0 replies; 5+ messages in thread
From: Zheng Bin @ 2020-09-10 13:59 UTC (permalink / raw)
  To: pkshih, kvalo, davem, kuba, linux-wireless, netdev, linux-kernel
  Cc: yi.zhang, zhengbin13

Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c:735:5-9: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c:776:5-9: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
index 8f7689225393..b9775eec4c54 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
@@ -732,7 +732,7 @@ void rtl88ee_set_desc(struct ieee80211_hw *hw, u8 *pdesc8,
 {
 	__le32 *pdesc = (__le32 *)pdesc8;

-	if (istx == true) {
+	if (istx) {
 		switch (desc_name) {
 		case HW_DESC_OWN:
 			set_tx_desc_own(pdesc, 1);
@@ -773,7 +773,7 @@ u64 rtl88ee_get_desc(struct ieee80211_hw *hw,
 	u32 ret = 0;
 	__le32 *pdesc = (__le32 *)pdesc8;

-	if (istx == true) {
+	if (istx) {
 		switch (desc_name) {
 		case HW_DESC_OWN:
 			ret = get_tx_desc_own(pdesc);
--
2.26.0.106.g9fadedd


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH -next 3/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c
  2020-09-10 13:59 [PATCH -next 0/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning Zheng Bin
  2020-09-10 13:59 ` [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c Zheng Bin
  2020-09-10 13:59 ` [PATCH -next 2/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c Zheng Bin
@ 2020-09-10 13:59 ` Zheng Bin
  2 siblings, 0 replies; 5+ messages in thread
From: Zheng Bin @ 2020-09-10 13:59 UTC (permalink / raw)
  To: pkshih, kvalo, davem, kuba, linux-wireless, netdev, linux-kernel
  Cc: yi.zhang, zhengbin13

Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:777:14-20: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:782:13-19: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:787:14-20: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:792:13-19: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:871:6-33: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c:1070:5-13: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
index 4c8d71fbdd7a..63f9ea21962f 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
@@ -774,22 +774,22 @@ static bool _rtl88ee_llt_table_init(struct ieee80211_hw *hw)

 	for (i = 0; i < (txpktbuf_bndy - 1); i++) {
 		status = _rtl88ee_llt_write(hw, i, i + 1);
-		if (true != status)
+		if (!status)
 			return status;
 	}

 	status = _rtl88ee_llt_write(hw, (txpktbuf_bndy - 1), 0xFF);
-	if (true != status)
+	if (!status)
 		return status;

 	for (i = txpktbuf_bndy; i < maxpage; i++) {
 		status = _rtl88ee_llt_write(hw, i, (i + 1));
-		if (true != status)
+		if (!status)
 			return status;
 	}

 	status = _rtl88ee_llt_write(hw, maxpage, txpktbuf_bndy);
-	if (true != status)
+	if (!status)
 		return status;

 	return true;
@@ -868,7 +868,7 @@ static bool _rtl88ee_init_mac(struct ieee80211_hw *hw)
 	rtl_write_byte(rtlpriv, MSR, 0x00);

 	if (!rtlhal->mac_func_enable) {
-		if (_rtl88ee_llt_table_init(hw) == false) {
+		if (!_rtl88ee_llt_table_init(hw)) {
 			rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD,
 				"LLT table init fail\n");
 			return false;
@@ -1067,7 +1067,7 @@ int rtl88ee_hw_init(struct ieee80211_hw *hw)
 	}

 	rtstatus = _rtl88ee_init_mac(hw);
-	if (rtstatus != true) {
+	if (!rtstatus) {
 		pr_info("Init MAC failed\n");
 		err = 1;
 		goto exit;
--
2.26.0.106.g9fadedd


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c
  2020-09-10 13:59 ` [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c Zheng Bin
@ 2020-09-16  6:11   ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2020-09-16  6:11 UTC (permalink / raw)
  To: Zheng Bin
  Cc: pkshih, davem, kuba, linux-wireless, netdev, linux-kernel,
	yi.zhang, zhengbin13

Zheng Bin <zhengbin13@huawei.com> wrote:

> Fixes coccicheck warning:
> 
> drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c:1584:14-18: WARNING: Comparison to bool
> 
> Signed-off-by: Zheng Bin <zhengbin13@huawei.com>

3 patches applied to wireless-drivers-next.git, thanks.

6996e70f1fe4 rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c
f40adfd07418 rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c
916c3b969d21 rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c

-- 
https://patchwork.kernel.org/patch/11769245/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-16  6:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 13:59 [PATCH -next 0/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning Zheng Bin
2020-09-10 13:59 ` [PATCH -next 1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c Zheng Bin
2020-09-16  6:11   ` Kalle Valo
2020-09-10 13:59 ` [PATCH -next 2/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c Zheng Bin
2020-09-10 13:59 ` [PATCH -next 3/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c Zheng Bin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.