summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-10-15 08:44:32 +0200
committerJohannes Berg <johannes.berg@intel.com>2015-10-15 16:17:07 +0200
commit7cf374182391d67f08c0ef0519a57fb594e0f543 (patch)
tree22935bb48806ce2bd438c8599ccf95567aabc989 /net/wireless
parent8047d2616dc7ff47d34f5bc64835e060ccb5db1c (diff)
downloadop-kernel-dev-7cf374182391d67f08c0ef0519a57fb594e0f543.zip
op-kernel-dev-7cf374182391d67f08c0ef0519a57fb594e0f543.tar.gz
cfg80211: reg: remove useless non-NULL check
There's no way that the alpha2 pointer can be NULL, so no point in checking that it isn't. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index f0b0f8c..92ee92a 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -501,9 +501,6 @@ static void reg_regdb_query(const char *alpha2)
{
struct reg_regdb_search_request *request;
- if (!alpha2)
- return;
-
request = kzalloc(sizeof(struct reg_regdb_search_request), GFP_KERNEL);
if (!request)
return;
OpenPOWER on IntegriCloud