]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: remove division by size of sizeof(struct ieee80211_wmm_rule)
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jun 2018 07:29:57 +0000 (09:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Aug 2018 07:36:33 +0000 (09:36 +0200)
commitdab6059ff1f9e5598bc69c0f194c4157e14008fe
tree9dd0aab2ce48109879f06e9d9f98a7f25be1a7ed
parent3ff0935d2aef2e9788a8d633aa585fa2899ae34a
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: 49e3edce28aa ("cfg80211: read wmm rules from regulatory database")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c