mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-09 15:36:42 +07:00
iwlwifi: mvm: fix operator precedence
Integers need to be multiplied before division. Signed-off-by: David Spinadel <david.spinadel@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
3f617281a6
commit
246dd9922e
@ -151,7 +151,8 @@ static void iwl_mvm_adjust_quota_for_noa(struct iwl_mvm *mvm,
|
|||||||
if (id != phy_id)
|
if (id != phy_id)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
quota *= (beacon_int - mvm->noa_duration) / beacon_int;
|
quota *= (beacon_int - mvm->noa_duration);
|
||||||
|
quota /= beacon_int;
|
||||||
|
|
||||||
cmd->quotas[i].quota = cpu_to_le32(quota);
|
cmd->quotas[i].quota = cpu_to_le32(quota);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user