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>
This commit is contained in:
parent
8047d2616d
commit
7cf3741823
|
@ -501,9 +501,6 @@ static void reg_regdb_query(const char *alpha2)
|
||||||
{
|
{
|
||||||
struct reg_regdb_search_request *request;
|
struct reg_regdb_search_request *request;
|
||||||
|
|
||||||
if (!alpha2)
|
|
||||||
return;
|
|
||||||
|
|
||||||
request = kzalloc(sizeof(struct reg_regdb_search_request), GFP_KERNEL);
|
request = kzalloc(sizeof(struct reg_regdb_search_request), GFP_KERNEL);
|
||||||
if (!request)
|
if (!request)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue