Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp404450pxb; Thu, 21 Oct 2021 01:43:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzATTTi70JIMx9yKNsUnLMsfywOjj2E5GYBlgIOXFVyQZ8QQi9UJfhXBY5OXJ65ceuPEx+z X-Received: by 2002:a17:90b:1d0d:: with SMTP id on13mr5100097pjb.118.1634805836200; Thu, 21 Oct 2021 01:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634805836; cv=none; d=google.com; s=arc-20160816; b=fGTdQ7+CDSll6IizcrHhatoewgGlEPFhblvZZWaZGvuop1MrthGWdBXbrz69f0DJ65 PJn4Gd0VualpUctfR4/wX/rmMicwF7mV6bR/ZS00da5+MWfbPKgF7ulBfggkQv6RKL3a n8ZyVrWMEG30T/Bh7/uKYic2rc7ukaEak73dTbMjPF1ta66qX56jnwCPClO6c5snNTPo nGB59FQB7t4cT29BpS8bHVrsJEmymv8alSyGx/FyNHsJZcMV3Y95JwGt6ekTRfwKB5CS 0UWzwk4BktymJrDIfcZ+QpPdQSWpUkQXV6WAcIP3A5u6u1CI6JcJjbrsXWutwxgVdgb7 GITw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Cm3WV/VN9ejovRYUn7tGIKFf0YdqmT9NQ76x8pLv+IA=; b=tl0lYAFCc+PBxOr/89fVSI5a8IsCvORRFQOX0tMyixvalIdro62tKJtLGjlW56Hhjl FbGwKaKcF4ffvhkPu9e2soSDc+27PmwUsykbjlTtpqIt7LElx+rF3gmCHDuVTKzPjsZW VjVk/HhTEW238G/PnQ8GTmnH9ym+m78BaC1WCgv3LYKdqYWK20N/rujbzqd42ktxUL2q KhMNTDEQaUA2PWyATZZseFeNgp2XSuS/gHpPNLdWMKf9sofoLcY4N8CgVvGFUfAlvWu8 PPQTtGCUhAOIvpZGlV62hZKCiolUR3S335gOFrCwTU4JNfzWaXO0X86vFqUo/1UIOIua pkGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nv6si6932074pjb.82.2021.10.21.01.43.43; Thu, 21 Oct 2021 01:43:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231517AbhJUIon (ORCPT + 99 others); Thu, 21 Oct 2021 04:44:43 -0400 Received: from mx24.baidu.com ([111.206.215.185]:46104 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231510AbhJUIol (ORCPT ); Thu, 21 Oct 2021 04:44:41 -0400 Received: from BC-Mail-Ex06.internal.baidu.com (unknown [172.31.51.46]) by Forcepoint Email with ESMTPS id 2F7E191CE7CE3491C185; Thu, 21 Oct 2021 16:42:24 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex06.internal.baidu.com (172.31.51.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Thu, 21 Oct 2021 16:42:23 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 21 Oct 2021 16:42:23 +0800 From: Cai Huoqing To: CC: Saurav Kashyap , Javed Hasan , , "James E.J. Bottomley" , "Martin K. Petersen" , , Subject: [PATCH] scsi: bnx2fc: Make use of the helper macro kthread_run() Date: Thu, 21 Oct 2021 16:42:21 +0800 Message-ID: <20211021084221.2342-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-EX02.internal.baidu.com (172.31.51.42) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Repalce kthread_create/wake_up_process() with kthread_run() to simplify the code. Signed-off-by: Cai Huoqing --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 71fa62bd3083..975512511a60 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -2723,9 +2723,8 @@ static int __init bnx2fc_mod_init(void) bg = &bnx2fc_global; skb_queue_head_init(&bg->fcoe_rx_list); - l2_thread = kthread_create(bnx2fc_l2_rcv_thread, - (void *)bg, - "bnx2fc_l2_thread"); + l2_thread = kthread_run(bnx2fc_l2_rcv_thread, + (void *)bg, "bnx2fc_l2_thread"); if (IS_ERR(l2_thread)) { rc = PTR_ERR(l2_thread); goto free_wq; -- 2.25.1