]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: Remove unused 'len' variable
authorKirtika Ruchandani <kirtika.ruchandani@gmail.com>
Thu, 24 Nov 2016 04:45:49 +0000 (20:45 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 15:05:09 +0000 (16:05 +0100)
commitcd5861bde0299fd5189a6b9e0d1e31e205064fc6
tree096c7cc5cdbc8095f21f5f316f8d562f8f34c5bd
parentb7f2405c6bd8ae0125a974308f649637cdc81f80
mac80211: Remove unused 'len' variable

Commit 633e27132625 (mac80211: split sched scan IEs) introduced the
len variable to keep track of the return value of
ieee80211_build_preq_ies() but did not use it. Compiling with W=1
gives the following warning, fix it.

net/mac80211/scan.c: In function ‘__ieee80211_request_sched_scan_start’:
net/mac80211/scan.c:1123:9: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]

This is a harmless warning and is only being fixed to reduce the noise
with W=1 in the kernel.

Fixes: 633e27132625 ("mac80211: split sched scan IEs")
Cc: David Spinadel <david.spinadel@intel.com>
Cc: Alexander Bondar <alexander.bondar@intel.com>
Cc: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kirtika Ruchandani <kirtika@chromium.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c