From patchwork Thu Jul 2 01:57:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Wang X-Patchwork-Id: 11637715 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B4DFA6C1 for ; Thu, 2 Jul 2020 02:11:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6BAB2070C for ; Thu, 2 Jul 2020 02:11:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbgGBCLk (ORCPT ); Wed, 1 Jul 2020 22:11:40 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:35216 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727074AbgGBCLj (ORCPT ); Wed, 1 Jul 2020 22:11:39 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-01 (Coremail) with SMTP id qwCowABHKOnuPv1edTKFAg--.63408S2; Thu, 02 Jul 2020 09:57:02 +0800 (CST) From: Xu Wang To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, mpe@ellerman.id.au, akpm@linux-foundation.org, wenwen@cs.uga.edu, adobriyan@gmail.com, dan.carpenter@oracle.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] net: cisco : use set_current_state macro Date: Thu, 2 Jul 2020 01:57:01 +0000 Message-Id: <20200702015701.8606-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowABHKOnuPv1edTKFAg--.63408S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZrWkCFWkGF1xCr1kWry5XFb_yoWxCrcEka 10qF9akryUW3Wj9rsrCF43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ender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Use set_current_state macro instead of current->state = TASK_RUNNING. Signed-off-by: Xu Wang --- drivers/net/wireless/cisco/airo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/cisco/airo.c b/drivers/net/wireless/cisco/airo.c index 827bb6d74815..f0bcb67095f1 100644 --- a/drivers/net/wireless/cisco/airo.c +++ b/drivers/net/wireless/cisco/airo.c @@ -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; }