Commit e6e8c233 authored by Johannes Berg's avatar Johannes Berg Committed by Luca Coelho

iwlwifi: debugfs: remove useless double condition

There's no point spelling out the same condition twice,
so remove the second one.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220204122220.321a7e67209b.Iafb75006eab971ca6982d6efd76347d3f47bd023@changeidSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 86371b73
...@@ -425,8 +425,7 @@ static ssize_t iwl_dbgfs_amsdu_len_write(struct ieee80211_sta *sta, ...@@ -425,8 +425,7 @@ static ssize_t iwl_dbgfs_amsdu_len_write(struct ieee80211_sta *sta,
return -EINVAL; return -EINVAL;
/* only change from debug set <-> debug unset */ /* only change from debug set <-> debug unset */
if ((amsdu_len && mvmsta->orig_amsdu_len) || if (amsdu_len && mvmsta->orig_amsdu_len)
(!!amsdu_len && mvmsta->orig_amsdu_len))
return -EBUSY; return -EBUSY;
if (amsdu_len) { if (amsdu_len) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment