mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-15 06:00:41 +00:00
cfg80211: remove division by size of sizeof(struct ieee80211_wmm_rule)
Pointer arithmetic already adjusts by the size of the struct, so the sizeof() calculation is wrong. This is basically the same as Colin King's patch for similar code in the iwlwifi driver. Fixes: 230ebaa189af ("cfg80211: read wmm rules from regulatory database") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
484004339d
commit
8a54d8fc16
@ -452,8 +452,7 @@ reg_copy_regd(const struct ieee80211_regdomain *src_regd)
|
||||
continue;
|
||||
|
||||
regd->reg_rules[i].wmm_rule = d_wmm +
|
||||
(src_regd->reg_rules[i].wmm_rule - s_wmm) /
|
||||
sizeof(struct ieee80211_wmm_rule);
|
||||
(src_regd->reg_rules[i].wmm_rule - s_wmm);
|
||||
}
|
||||
return regd;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user