aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath11k/debug.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-20 20:37:45 +0800
committerKalle Valo <kvalo@codeaurora.org>2020-04-22 09:42:35 +0300
commitd81709346ceac7b9131b4a091197b9d7fc5a409f (patch)
tree388a582cd5f1da56f875342fdd652c607834cff5 /drivers/net/wireless/ath/ath11k/debug.c
parentath11k: remove conversion to bool in ath11k_dp_rxdesc_mpdu_valid() (diff)
downloadlinux-d81709346ceac7b9131b4a091197b9d7fc5a409f.tar.xz
linux-d81709346ceac7b9131b4a091197b9d7fc5a409f.zip
ath11k: remove conversion to bool in ath11k_debug_fw_stats_process()
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/net/wireless/ath/ath11k/debug.c:198:57-62: WARNING: conversion to bool not needed here drivers/net/wireless/ath/ath11k/debug.c:218:58-63: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200420123745.4159-1-yanaijie@huawei.com
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath11k/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c
index a2e3dfeae3d5..3fd6b5af073b 100644
--- a/drivers/net/wireless/ath/ath11k/debug.c
+++ b/drivers/net/wireless/ath/ath11k/debug.c
@@ -195,7 +195,7 @@ void ath11k_debug_fw_stats_process(struct ath11k_base *ab, struct sk_buff *skb)
total_vdevs_started += ar->num_started_vdevs;
}
- is_end = ((++num_vdev) == total_vdevs_started ? true : false);
+ is_end = ((++num_vdev) == total_vdevs_started);
list_splice_tail_init(&stats.vdevs,
&ar->debug.fw_stats.vdevs);
@@ -215,7 +215,7 @@ void ath11k_debug_fw_stats_process(struct ath11k_base *ab, struct sk_buff *skb)
/* Mark end until we reached the count of all started VDEVs
* within the PDEV
*/
- is_end = ((++num_bcn) == ar->num_started_vdevs ? true : false);
+ is_end = ((++num_bcn) == ar->num_started_vdevs);
list_splice_tail_init(&stats.bcn,
&ar->debug.fw_stats.bcn);