Message ID | alpine.DEB.2.21.1903072236250.2558@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ath11k: fix itnull.cocci warnings | expand |
Julia Lawall <julia.lawall@lip6.fr> writes: > 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> Doesn't apply either.
--- 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; }