OSDN Git Service

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)
commit8a54d8fc160e67ad485d95a0322ce1221f80770a
tree9dd0aab2ce48109879f06e9d9f98a7f25be1a7ed
parent484004339d4514fde425f6e8a9f6a6cc979bb0c3
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>
net/wireless/reg.c