mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
wifi: iwlwifi: mvm: combine condition/warning
WARN() returns the value of the condition, so it's nicer to combine the warning and the if. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240205211151.44f63334760e.If0a2cf347a8676a3830c5c3183a257fe11f31419@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
f05ef3497f
commit
066425b6c8
1 changed files with 1 additions and 3 deletions
|
@ -649,10 +649,8 @@ static void iwl_mvm_release_frames_from_notif(struct iwl_mvm *mvm,
|
|||
rcu_read_lock();
|
||||
|
||||
ba_data = rcu_dereference(mvm->baid_map[baid]);
|
||||
if (!ba_data) {
|
||||
WARN(true, "BAID %d not found in map\n", baid);
|
||||
if (WARN(!ba_data, "BAID %d not found in map\n", baid))
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* pick any STA ID to find the pointer */
|
||||
sta_id = ffs(ba_data->sta_mask) - 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue