cfg80211: remove set but never used variable cf_offset

Perhaps it had been intended to be used, but it clearly isn't.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2017-10-12 11:23:04 +02:00
Родитель 9e97964d5e
Коммит a67a4893f3
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -464,7 +464,7 @@ bool cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef,
struct ieee80211_channel *chan) struct ieee80211_channel *chan)
{ {
int width; int width;
u32 cf_offset, freq; u32 freq;
if (chandef->chan->center_freq == chan->center_freq) if (chandef->chan->center_freq == chan->center_freq)
return true; return true;
@ -473,8 +473,6 @@ bool cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef,
if (width <= 20) if (width <= 20)
return false; return false;
cf_offset = width / 2 - 10;
for (freq = chandef->center_freq1 - width / 2 + 10; for (freq = chandef->center_freq1 - width / 2 + 10;
freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) { freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) {
if (chan->center_freq == freq) if (chan->center_freq == freq)