Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4972453pxj; Wed, 9 Jun 2021 06:28:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsk1MRT8Dl99EFbYZrtFXoDEs8sTNWbbiMc5y/dJK8J6yu50PUoTau1yez2M7Vx+rmNQgn X-Received: by 2002:a17:906:bc2:: with SMTP id y2mr26570196ejg.489.1623245326418; Wed, 09 Jun 2021 06:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623245326; cv=none; d=google.com; s=arc-20160816; b=rg8KsbjSKhx/nqZCrWb7S9dp723td0SlUrMGEJ5rhDw6opEKnit3fZ92tydNckDHGc MG4/UwgmIY5SRInrK5V/4SMwB3O3E6IBv7qVv4TZoQF5GnsnO8OUgzH73eP0TuQTNoHJ TX3BiCZDl0TQHHujSeHAMhB3HFTWubtOroEj7y7JDyv23D3k1GrT5gXmy9f7xDh9djjE rAN5Nfb2vl7IycD6NVIVPVyXYNfw0R+Ko68mWDcIpoiH2eRYLGptKOQPSS0t4KS8N9Jy 4Ng8LgLxE6m01pKoU84qsiYDsO8yYkE3zMAJtKdO5KrUgQMv2cQ54HdifUjd3fe6hb26 3/ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WoQpzAwpci4kniQzoRHTdoyCYcA9ioWw2hQ14YwMrt4=; b=07hC+DqJTS5AVp0CAxTWpb7jBSNQ2Z8wNTRmCc4JWe0Dxbal60vbr3tTvCMuPxa3RL QSR+6QeVjwKHUPZJ1oJ+NVBfMF+vvO/8bgCxNakjlg2EhezJ9t+RR5UjasdwEuGgQQzj MqXSQtLZrYG/CfBtgpqVRMsoY0Pdn3sLBU6kAW1hfIvZPyGU2eFkJiLQMYEbyW26uQnk SFjORFsPqqbz7w7iACQVDK7OHUolz1IDku0UuYbLi9WrIAEnO5csk7SWxjEmRY2vMnhv SPx++tMZxXoiAF5oKCljN7A16gZxsRfedNrnsYGqU/ULPeJ0DfPNKWKpnUO1JfnrZuJn 1YQw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si2460990ejl.253.2021.06.09.06.28.22; Wed, 09 Jun 2021 06:28:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234055AbhFIHJG (ORCPT + 99 others); Wed, 9 Jun 2021 03:09:06 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5461 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234723AbhFIHJE (ORCPT ); Wed, 9 Jun 2021 03:09:04 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G0J4f50yNzZdxs; Wed, 9 Jun 2021 15:04:18 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 15:07:08 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 15:07:07 +0800 From: Baokun Li To: , Anil Gurumurthy , Sudarsana Kalluru , "James E.J. Bottomley" , "Martin K. Petersen" CC: , , , , , , , Hulk Robot Subject: [PATCH -next v2] scsi: bfa: Use list_move_tail instead of list_del/list_add_tail in bfa_ioc.c Date: Wed, 9 Jun 2021 15:16:17 +0800 Message-ID: <20210609071617.1338784-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using list_move_tail() instead of list_del() + list_add_tail() in bfa_ioc.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/scsi/bfa/bfa_ioc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c index 5740302d83ac..077b052aef1a 100644 --- a/drivers/scsi/bfa/bfa_ioc.c +++ b/drivers/scsi/bfa/bfa_ioc.c @@ -3201,8 +3201,7 @@ bfa_timer_beat(struct bfa_timer_mod_s *mod) elem = (struct bfa_timer_s *) qe; if (elem->timeout <= BFA_TIMER_FREQ) { elem->timeout = 0; - list_del(&elem->qe); - list_add_tail(&elem->qe, &timedout_q); + list_move_tail(&elem->qe, &timedout_q); } else { elem->timeout -= BFA_TIMER_FREQ; }