regulatory: pass new regdomain to reset function
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Dec 2012 14:44:07 +0000 (15:44 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:29 +0000 (13:01 +0100)
commit379b82f4c9dc6e67bf61aa61b096c06a2f320f60
tree4124d3f006f874f7dbfb75bf46437e9cd00d273e
parentfe7ef5e9ba0c60bab01390493a4c6790f7b093af
regulatory: pass new regdomain to reset function

Instead of assigning after calling the function do
it inside the function. This will later avoid a
period of time where the pointer is NULL.

Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c