]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: remove pointless channel lookup in survey code
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Nov 2014 14:24:31 +0000 (15:24 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 25 Nov 2014 08:57:27 +0000 (09:57 +0100)
commit767525409e22aa828d64196207a0ed072e8b332c
tree6a169aea0871be69b286a47f560a7536e52ffb12
parent1b229975b9a782ce9cb840383768de2e7bd9f05c
cfg80211: remove pointless channel lookup in survey code

We have a channel pointer, and we use its center frequency
to look up a channel pointer - which will thus be exactly
the same as the original pointer.

Remove that pointless lookup and just use the pointer.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c