regulatory: use IS_ERR macro family for freq_reg_info
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Dec 2012 14:57:14 +0000 (15:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:31 +0000 (13:01 +0100)
commit361c9c8b0eeeec7d881e018d5143bf883558c566
tree631cd436b7e80b8134084a935337c6ee3243bd7b
parentc492db370c17c428a0a58d3673294d4e99634b7d
regulatory: use IS_ERR macro family for freq_reg_info

Instead of returning an error and filling a pointer
return the pointer and an ERR_PTR value in error cases.

Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/regd.c
drivers/net/wireless/brcm80211/brcmsmac/channel.c
drivers/net/wireless/rtlwifi/regd.c
include/net/cfg80211.h
net/wireless/reg.c