]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: reg: remove useless reg_timeout scheduling
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Oct 2015 07:12:49 +0000 (09:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Oct 2015 14:17:09 +0000 (16:17 +0200)
commitc390f65991a8378530e351ea0e6294c6ed5a678f
treee9d3cc5c0faff96acdbc2998656d8bec32374ae0
parentc21097486a802c62e21c8e9756e66ad33e74431f
cfg80211: reg: remove useless reg_timeout scheduling

When the functions reg_set_rd_driver() and reg_set_rd_country_ie()
return with an error, the calling function already restores data
by calling restore_regulatory_settings(), so there's no need to
also schedule a timeout (which would lead to other side effects
such as indicating CRDA failed, which clearly isn't true.) Remove
the scheduling.

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