From: kernel test robot <lkp@intel.com>
To: Harsh Kumar Bijlani <quic_hbijlani@quicinc.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Jeff Johnson <jeff.johnson@oss.qualcomm.com>,
Ripan Deuri <quic_rdeuri@quicinc.com>,
Vasanthakumar Thiagarajan
<vasanthakumar.thiagarajan@oss.qualcomm.com>,
Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Subject: drivers/net/wireless/ath/ath12k/wifi7/hw.c:127:21-23: WARNING !A || A && B is equivalent to !A || B
Date: Thu, 26 Nov 2026 04:42:10 +0100 [thread overview]
Message-ID: <20261126043442.ZtOXN9et-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ebb7a8dc1e74c705daffe11c2faf38ec2628f838
commit: ee16dcf573d5e3283fda601dd4bca6bc52251017 wifi: ath12k: Define ath12k_dp_peer structure & APIs for create & delete
date: 1 year, 1 month ago
config: x86_64-randconfig-2103-20261124 (https://download.01.org/0day-ci/archive/20261126/20261126043442.ZtOXN9et-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: ee16dcf573d5 ("wifi: ath12k: Define ath12k_dp_peer structure & APIs for create & delete")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261126043442.ZtOXN9et-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/net/wireless/ath/ath12k/wifi7/hw.c:127:21-23: WARNING !A || A && B is equivalent to !A || B
vim +127 drivers/net/wireless/ath/ath12k/wifi7/hw.c
111
112 static bool
113 ath12k_wifi7_is_frame_link_agnostic_wcn7850(struct ath12k_link_vif *arvif,
114 struct ieee80211_mgmt *mgmt)
115 {
116 struct ieee80211_vif *vif = ath12k_ahvif_to_vif(arvif->ahvif);
117 struct ath12k_hw *ah = ath12k_ar_to_ah(arvif->ar);
118 struct ath12k_base *ab = arvif->ar->ab;
119 struct ath12k_dp *dp = ath12k_ab_to_dp(ab);
120 struct ath12k_dp_peer *peer;
121 __le16 fc = mgmt->frame_control;
122
123 spin_lock_bh(&dp->dp_lock);
124 if (!ath12k_dp_link_peer_find_by_addr(dp, mgmt->da)) {
125 spin_lock_bh(&ah->dp_hw.peer_lock);
126 peer = ath12k_dp_peer_find_by_addr(&ah->dp_hw, mgmt->da);
> 127 if (!peer || (peer && !peer->is_mlo)) {
128 spin_unlock_bh(&ah->dp_hw.peer_lock);
129 spin_unlock_bh(&dp->dp_lock);
130 return false;
131 }
132 spin_unlock_bh(&ah->dp_hw.peer_lock);
133 }
134 spin_unlock_bh(&dp->dp_lock);
135
136 if (vif->type == NL80211_IFTYPE_STATION)
137 return arvif->is_up &&
138 (vif->valid_links == vif->active_links) &&
139 !ieee80211_is_probe_req(fc) &&
140 !ieee80211_is_auth(fc) &&
141 !ieee80211_is_deauth(fc) &&
142 !ath12k_is_addba_resp_action_code(mgmt);
143
144 if (vif->type == NL80211_IFTYPE_AP)
145 return !(ieee80211_is_probe_resp(fc) || ieee80211_is_auth(fc) ||
146 ieee80211_is_assoc_resp(fc) || ieee80211_is_reassoc_resp(fc) ||
147 ath12k_is_addba_resp_action_code(mgmt));
148
149 return false;
150 }
151
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-11-26 3:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 3:42 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-25 14:44 drivers/net/wireless/ath/ath12k/wifi7/hw.c:127:21-23: WARNING !A || A && B is equivalent to !A || B kernel test robot
2026-07-20 13:26 kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126043442.ZtOXN9et-lkp@intel.com \
--to=lkp@intel.com \
--cc=baochen.qiang@oss.qualcomm.com \
--cc=jeff.johnson@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quic_hbijlani@quicinc.com \
--cc=quic_rdeuri@quicinc.com \
--cc=vasanthakumar.thiagarajan@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.