]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitced4e4559e2a53fc27251bba96c3d291af9d2189
tree631cd436b7e80b8134084a935337c6ee3243bd7b
parentb4445b69f5f12e0923b316bb8a3b29a08a99eaf7
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