Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cf37418 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8047d261
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;