Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3674496pxj; Mon, 7 Jun 2021 17:33:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDJR2+GNBjwAkDkUceOAm2YIYXalr1cfLeutUpl2ZRp9lNJGewTbTcDc0gWDbHNNUYPBGd X-Received: by 2002:aa7:de8b:: with SMTP id j11mr22818318edv.363.1623112435431; Mon, 07 Jun 2021 17:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623112435; cv=none; d=google.com; s=arc-20160816; b=PiRIOAb8YI2uJRzrLZiZbTO/KmadbeNCAts1bfLVlGoJpC/u1ZA7wpp0juo3UzQsgM lMCynqwSUSy6S5zs2EAMnd/8x8C7PJkQTmD/vd0gbVa30RDKzvN8KcHN8x5o49xjnim/ fyJzYF2gRJ7SZx1+9if1/FI4pVuVfDL9tJeKPeGuVxzh0wQ9VgivWzCPQx/lcq8anQnj 6gAZZFZApdoxI29rRgDotxExBp14cTXanw0xzQMwAKzWvQk3YR1beTeJfBVKeSz554pT uQH19UlIG+bJaeqIdVn7V4aXkTIcfA5mOt+blgc+Z/087dMgMU38mYfF0FXdL1vDH1bq oL9w== 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=kf1dT7YctR1z1deACdS6JPD25cBN41tmmAqOmPCRfec=; b=oua7AhoEtx0kYgUm0yhJuN6av0R0RejxH1bvKVCWqv3xHJ6zrlUcvsnDAy56SKmTvI VI8a1JjmDADJnchR4VTur4tv9Q/sromEpC06G+D3LxkSTBGnw1dj3MCuvkpORvv560Bl RpkJGvmYf9KQUlJxNIbBDasx7LcMut2aNAwD/zqVJNaDvhdOw2XH4QaBNi5BG4LSN7Yw x11FLADjxqz/ZkHAW47/OywQFU1NikqtFiy7qEr/lKP/bi8BapDdabBxkClxRV7UJpcu odQnDtt2tpfD7/8UEmzvgv2PEzsp/pY+jn64xhVR/20FtNX0OK5e+oHMQLS4NhvFSKf2 NWZA== 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 v4si16221225edj.103.2021.06.07.17.33.32; Mon, 07 Jun 2021 17:33:55 -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 S231184AbhFHAdv (ORCPT + 99 others); Mon, 7 Jun 2021 20:33:51 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:4384 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbhFHAdu (ORCPT ); Mon, 7 Jun 2021 20:33:50 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FzWKz0769z6vNJ; Tue, 8 Jun 2021 08:28:07 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 08:31:57 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 8 Jun 2021 08:31:56 +0800 From: Zou Wei To: , CC: , , , Zou Wei Subject: [PATCH -next] soc: fsl: dpio: use list_move_tail instead of list_del/list_add_tail Date: Tue, 8 Jun 2021 08:50:32 +0800 Message-ID: <1623113432-49313-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggemi762-chm.china.huawei.com (10.1.198.148) 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: Zou Wei --- drivers/soc/fsl/dpio/dpio-service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c index 7351f30..340c090 100644 --- a/drivers/soc/fsl/dpio/dpio-service.c +++ b/drivers/soc/fsl/dpio/dpio-service.c @@ -76,8 +76,7 @@ static inline struct dpaa2_io *service_select(struct dpaa2_io *d) spin_lock(&dpio_list_lock); d = list_entry(dpio_list.next, struct dpaa2_io, node); - list_del(&d->node); - list_add_tail(&d->node, &dpio_list); + list_move_tail(&d->node, &dpio_list); spin_unlock(&dpio_list_lock); return d; -- 2.6.2