iwlwifi: debugfs: remove useless double condition
authorJohannes Berg <johannes.berg@intel.com>
Fri, 4 Feb 2022 10:25:09 +0000 (12:25 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Feb 2022 08:40:53 +0000 (10:40 +0200)
There's no point spelling out the same condition twice,
so remove the second one.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220204122220.321a7e67209b.Iafb75006eab971ca6982d6efd76347d3f47bd023@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

index be11161..fecd7d4 100644 (file)
@@ -425,8 +425,7 @@ static ssize_t iwl_dbgfs_amsdu_len_write(struct ieee80211_sta *sta,
                return -EINVAL;
 
        /* only change from debug set <-> debug unset */
-       if ((amsdu_len && mvmsta->orig_amsdu_len) ||
-           (!!amsdu_len && mvmsta->orig_amsdu_len))
+       if (amsdu_len && mvmsta->orig_amsdu_len)
                return -EBUSY;
 
        if (amsdu_len) {