regulatory: clean up reg_copy_regd()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Dec 2012 15:59:46 +0000 (16:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:20 +0000 (13:01 +0100)
commite9763c3c295a8b31316e16558b58b226e005b160
treee132203edc7265cb23ace6404c9f8b03ad870d7c
parent74f53cd8d4474f9ba91c7309feabebae80a60089
regulatory: clean up reg_copy_regd()

Use ERR_PTR/IS_ERR to return the result or errors,
also do some code cleanups.

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