summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtlwifi/regd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/rtlwifi/regd.c')
-rw-r--r--drivers/staging/rtlwifi/regd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtlwifi/regd.c b/drivers/staging/rtlwifi/regd.c
index 3afd206ce4b1..5213ca771175 100644
--- a/drivers/staging/rtlwifi/regd.c
+++ b/drivers/staging/rtlwifi/regd.c
@@ -410,7 +410,7 @@ int rtl_regd_init(struct ieee80211_hw *hw,
struct wiphy *wiphy = hw->wiphy;
struct country_code_to_enum_rd *country = NULL;
- if (!wiphy || !&rtlpriv->regd)
+ if (!wiphy)
return -EINVAL;
/* init country_code from efuse channel plan */