mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
iwlwifi: debugfs: remove useless double condition
There's no point spelling out the same condition twice, so remove the second one. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20220204122220.321a7e67209b.Iafb75006eab971ca6982d6efd76347d3f47bd023@changeid Signed-off-by: Luca Coelho <[email protected]>
This commit is contained in:
1 parent
86371b735f
commit
e6e8c23362
1 file changed
+1
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user