rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c
authorZheng Bin <zhengbin13@huawei.com>
Thu, 10 Sep 2020 13:59:16 +0000 (21:59 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 16 Sep 2020 06:11:11 +0000 (09:11 +0300)
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200910135917.143723-3-zhengbin13@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c

index 8f76892..b9775ee 100644 (file)
@@ -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);