cfg80211: reg: remove useless non-NULL check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Oct 2015 06:44:32 +0000 (08:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Oct 2015 14:17:07 +0000 (16:17 +0200)
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>
net/wireless/reg.c

index f0b0f8c818b1731fab28b684bfcb57f6024ab101..92ee92a1592be2e3c0256cc3338f18bbe9996c15 100644 (file)
@@ -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;