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

Commit d4f2c881 authored by Johannes Berg's avatar Johannes Berg
Browse files

regulatory: remove redundant isalpha() check



toupper() only modifies lower-case letters, so
the isalpha() check is redundant; remove it.

Acked-by: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 11cff96c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1614,9 +1614,7 @@ static void reg_todo(struct work_struct *work)

static void queue_regulatory_request(struct regulatory_request *request)
{
	if (isalpha(request->alpha2[0]))
	request->alpha2[0] = toupper(request->alpha2[0]);
	if (isalpha(request->alpha2[1]))
	request->alpha2[1] = toupper(request->alpha2[1]);

	spin_lock(&reg_requests_lock);