mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
regulatory: remove redundant isalpha() check
toupper() only modifies lower-case letters, so the isalpha() check is redundant; remove it. Acked-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
11cff96c06
commit
d4f2c8819a
1 changed files with 2 additions and 4 deletions
|
|
@ -1614,10 +1614,8 @@ 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]);
|
||||
request->alpha2[0] = toupper(request->alpha2[0]);
|
||||
request->alpha2[1] = toupper(request->alpha2[1]);
|
||||
|
||||
spin_lock(®_requests_lock);
|
||||
list_add_tail(&request->list, ®_requests_list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue