airo: use set_current_state macro
authorXu Wang <vulab@iscas.ac.cn>
Thu, 2 Jul 2020 01:57:01 +0000 (01:57 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Jul 2020 10:40:21 +0000 (13:40 +0300)
Use set_current_state macro instead of current->state = TASK_RUNNING.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200702015701.8606-1-vulab@iscas.ac.cn
drivers/net/wireless/cisco/airo.c

index 827bb6d74815af15c1a2f94b386333c9d1d1cbb1..f0bcb67095f1898710b3f46ad309e30ada0609a7 100644 (file)
@@ -3113,7 +3113,7 @@ static int airo_thread(void *data) {
                                }
                                break;
                        }
-                       current->state = TASK_RUNNING;
+                       __set_current_state(TASK_RUNNING);
                        remove_wait_queue(&ai->thr_wait, &wait);
                        locked = 1;
                }