Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp348361pxb; Wed, 8 Sep 2021 02:38:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg4W1Xg5eBW42AknoIWG6OEW6+QwAi5g9QU18VctM/VbjK497saTcOUT2qh4V6p/pCIILG X-Received: by 2002:a05:6402:4247:: with SMTP id g7mr2831508edb.287.1631093905743; Wed, 08 Sep 2021 02:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631093905; cv=none; d=google.com; s=arc-20160816; b=H0CjbUntsttuMHV5Clih1qzPLlzueff9Bpl+HDJjOjwnMViw+LiUakvxFHQIh6FwkI tPQQ74LfhxjLBxVh/9cRSwSCwIdN0TH/UgxOaqsERZdm5EbZBFKfr2Mj8JdAz6xfrUeW BVJ4I6iPXtxnzUDxep6UgcKBfwL23YrZKajxviIi0LD7tzdvqOpn4j0Ln5dDBQIKw/SU hDn3mrja4KKv2z8hhMjZmPRW2HiFmndDl4iCYy6XTKlxDpNe987bTlm6Hc05SwUHJ9ja TgVxg0n9aWULFArFC036SIVPKbfDh+2tjLBhrGHXtcrDN3gRL9eurd4uIOoE6qPgGBLE Xs7Q== 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=e81yZceIbghyfzz2+wSDxspBxd/cjQ6SFEgbFICu9m0=; b=c1X7ieMJNHpBybqWu5kEXybYuQSSb0ivzrwwfng3Trbov7vqVcU+4l0DThUlrwYdT4 dxtYaRxMw3TFe1e+xghwP3txtvc+LYOZssEoFpdz+eHI/VcCSB3yj33UsWfrr1cfu8VQ ZOATwwrMbXbvvBNtongwQIpuuCAzfeMyb3knMQzBSEOhcHBWzvlOwj8U8vfhz5XFIA7m l7JlLX1npxFSBFUpUjFTMAVsbShoZVUQLOcZURhUCIsim744VFI/lXhiHjyq1BhPJvkf L8pk5ZdGreAxdq80mkkjK8IbTjLF54zFnFsBEYWRRCITeF3tx7VukGZU2VLQvvfa/p1j 8PFw== 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 e14si1674689edu.216.2021.09.08.02.38.02; Wed, 08 Sep 2021 02:38:25 -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 S1347656AbhIHJd3 (ORCPT + 99 others); Wed, 8 Sep 2021 05:33:29 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:15393 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346064AbhIHJd2 (ORCPT ); Wed, 8 Sep 2021 05:33:28 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4H4Gyp3fJmzR3hH; Wed, 8 Sep 2021 17:28:18 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 8 Sep 2021 17:32:17 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 8 Sep 2021 17:32:17 +0800 From: Bixuan Cui To: , CC: , , Subject: [PATCH -next] dmaengine: idxd: Use list_move_tail instead of list_del/list_add_tail Date: Wed, 8 Sep 2021 17:28:26 +0800 Message-ID: <20210908092826.67765-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500004.china.huawei.com (7.185.36.219) 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() Reported-by: Hulk Robot Signed-off-by: Bixuan Cui --- drivers/dma/idxd/irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c index ca88fa7a328e..79fcfc4883e4 100644 --- a/drivers/dma/idxd/irq.c +++ b/drivers/dma/idxd/irq.c @@ -221,8 +221,7 @@ static void irq_process_work_list(struct idxd_irq_entry *irq_entry) list_for_each_entry_safe(desc, n, &irq_entry->work_list, list) { if (desc->completion->status) { - list_del(&desc->list); - list_add_tail(&desc->list, &flist); + list_move_tail(&desc->list, &flist); } } -- 2.17.1