ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath11k: fix itnull.cocci warnings
@ 2019-03-07 21:37 Julia Lawall
  2019-03-08 12:48 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2019-03-07 21:37 UTC (permalink / raw)
  To: Kalle Valo; +Cc: kbuild-all, ath10k

From: kbuild test robot <lkp@intel.com>

Iterator variable bound on line 976 cannot be NULL.

Generated by: scripts/coccinelle/iterators/itnull.cocci

Fixes: 258bbf525e65 ("ath11k: add driver")
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-bringup
head:   e7daa3ec639f390e383dae0db9e6b143bcc7b5bc
commit: 258bbf525e652e244aa8b2331f55fda573fbe926 [3/42] ath11k: add driver
:::::: branch date: 5 hours ago
:::::: commit date: 4 weeks ago

Please take the patch only if it's a positive warning. Thanks!

 dp_rx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -974,7 +974,7 @@ struct htt_ppdu_stats_info *ath11k_dp_ht
 	struct htt_ppdu_stats *ppdu_stats = NULL;

 	list_for_each_entry(ppdu_info, &ar->ppdu_stats_info, list) {
-		if (ppdu_info && ppdu_info->ppdu_id == ppdu_id)
+		if (ppdu_info->ppdu_id == ppdu_id)
 			return ppdu_info;
 	}


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

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

end of thread, other threads:[~2019-03-08 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-07 21:37 [PATCH] ath11k: fix itnull.cocci warnings Julia Lawall
2019-03-08 12:48 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox