Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp499573imm; Wed, 26 Sep 2018 02:11:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV63m3UqIeCOt28IMibK9d5dI4cqfFg8OGi07/df/TxoQvFs7etrnjUEh0P0LvhrqqkWIi82e X-Received: by 2002:a62:1b45:: with SMTP id b66-v6mr759029pfb.94.1537953094065; Wed, 26 Sep 2018 02:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537953094; cv=none; d=google.com; s=arc-20160816; b=entTPoJYul5QY0dImTHBvKtfCqaX5jOkUka+CKS+3u1qxsZFRrSXt+bOt1cWIA3oxT QRrbSOh0Jl0xZeXoTfiWrP2w/dvVMpE2+pLXJYliRVdyTTsHwolmgfJGnfCS9PcIQOqE SN+Kc5xFKUgdY8y1xaUSxN4SRioy2EjBQ1j0PFzh0WlOnkCZUWX3ysN7Un3K5p0VKI3W y1PykzQdDvYUdPL7zs+KdXu7VdxihY+PCaof8sWlwHL+7umZdzlp7PaPTrbC0XoFQOfk L1DEPFAveYSmu/2GPSb08uT+ba9wSqJc816IAIPxp62WTjaeE4obyyZhDtmMr85t8mMS 4RYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Gdn6YVIfhr7dqWueAGuilV3/V1RVZdshUVms5I3PK6E=; b=JvZzBCfAbbghqSACjGt1YkGCSm2+Wn79djDXkFnPF2dyBzKAiyAYuv7OJ16PWO12wx 0mIV+MPMCAWJ+OWu2Y7B1FOq20qZ7R4FbdnwC3jmeKcQ3PC0Jd9BrBste3rhTl193Ycy r/rgtQ3UpGGZuNIEW+724VkOCu3m+hOiW6LogIkrMLd3ZRrbH2WP2Wcg3IoftTHCXdZW grCqZvipO9nAGE48bRbhUcPohya4QO3uzctN9Iu4uWnQ6e9JxSH3ocLCcJ8Cgyx3dMhA GXa4lpapgblFdEyVOIBSIwImw6W/G9639UxcSnyVqz97fpdyG358OvAlUQTmbJh2XClQ TkMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p83-v6si4212801pfa.180.2018.09.26.02.11.18; Wed, 26 Sep 2018 02:11:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728223AbeIZPVV (ORCPT + 99 others); Wed, 26 Sep 2018 11:21:21 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12708 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726404AbeIZPVU (ORCPT ); Wed, 26 Sep 2018 11:21:20 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CAAFFB79BC9B1; Wed, 26 Sep 2018 17:09:18 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.399.0; Wed, 26 Sep 2018 17:09:17 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH] net: liquidio: list usage cleanup Date: Wed, 26 Sep 2018 16:56:50 +0800 Message-ID: <1537952210-6687-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Trival cleanup, list_move_tail will implement the same function that list_del() + list_add_tail() will do. hence just replace them. Signed-off-by: zhong jiang --- drivers/net/ethernet/cavium/liquidio/octeon_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.c b/drivers/net/ethernet/cavium/liquidio/octeon_device.c index 0f0275c..ce8c3f8 100644 --- a/drivers/net/ethernet/cavium/liquidio/octeon_device.c +++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.c @@ -1044,8 +1044,7 @@ void octeon_delete_dispatch_list(struct octeon_device *oct) dispatch = &oct->dispatch.dlist[i].list; while (dispatch->next != dispatch) { temp = dispatch->next; - list_del(temp); - list_add_tail(temp, &freelist); + list_move_tail(temp, &freelist); } oct->dispatch.dlist[i].opcode = 0; -- 1.7.12.4