From patchwork Thu Jul 28 16:16:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9251445 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ADF5A6077C for ; Thu, 28 Jul 2016 16:17:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E5DA27D0E for ; Thu, 28 Jul 2016 16:17:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 933C027D4D; Thu, 28 Jul 2016 16:17:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E4ED27D4A for ; Thu, 28 Jul 2016 16:17:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759070AbcG1QQ7 (ORCPT ); Thu, 28 Jul 2016 12:16:59 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33096 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758938AbcG1QQ6 (ORCPT ); Thu, 28 Jul 2016 12:16:58 -0400 Received: by mail-pa0-f66.google.com with SMTP id q2so3786604pap.0 for ; Thu, 28 Jul 2016 09:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s6eCUavmcQ/Z/g2rcjc5i4QpDTaEQDucU1EE1QR99H8=; b=Mnqh260dDmxAF4QOD656bIiGciVCTlSl1dCE3EA/tUixbcwGHs+itML9ls0fHHZ6h8 FEIfZVCAQyw7bzBWDCuagrMDMXNz538huwT3q4UO4JBYoZqFcsNTlave6V5yhAq6XY2a mClBsUPYS4OnSCpquRF++thlQMxc0vkHH/vgOgP5Pwhvf4sHFh1BQlpfENKhpNLVJH3w bqcokdgr4BzytARAH+XkPKbBM5sPRAIl51Yh0/v/ey7YBkwEWd+wcxGTUWhJ/q3EpRkX ehA9gR3zOU1u6KTbtEY/kuHw1taC4GVcvltqviKRtmGsoZKaJDYOhnSpl2/EIoWdmqaT 9JZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s6eCUavmcQ/Z/g2rcjc5i4QpDTaEQDucU1EE1QR99H8=; b=EK5mI/FpuA89W2roUwAvIagIk35/HrXH8FKZ2eQXrnGjICWPllw0LewCqfT0DLnYwm ijMPNAJ5qoGTgzddYNeQHp7TNSRVD7cupEDJROjVPVbXPHNflzvb+dBfb2aXwcQ5b+nQ HAUncSTeh1FYciwmy+a2+pmBEn038wgoT1giOnMs78wdWSZyHoiftgegDxqkkrvd6mdt p2hhxCy1RtPwu7KFV5I6pgVLL9VaEQHZ6LIIWb4Pm2+fhWAN40MOGY9JC7IGflrcl6mK 1sOocBm/m3u30ENWif5OOUJ9EwbUje73V5GQpACLgYxX8fJm9J2Efgo4wbQwhl8hKqAt rWTA== X-Gm-Message-State: AEkooutds5IM0ASCcCNM5fIYCQzRZCXVrU+soN+9T3z/UJq38LZT8mVuvG4o8LjtyaIXDw== X-Received: by 10.66.249.201 with SMTP id yw9mr43609289pac.130.1469722613111; Thu, 28 Jul 2016 09:16:53 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id t80sm18318805pfj.38.2016.07.28.09.16.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jul 2016 09:16:52 -0700 (PDT) From: Wei Yongjun To: "K . Y . Srinivasan" , Haiyang Zhang , Bjorn Helgaas Cc: Wei Yongjun , devel@linuxdriverproject.org, linux-pci@vger.kernel.org Subject: [PATCH -next] PCI: hv: Use list_move_tail instead of list_del/list_add_tail Date: Thu, 28 Jul 2016 16:16:48 +0000 Message-Id: <1469722608-14956-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Using list_move_tail() instead of list_del() + list_add_tail(). Signed-off-by: Wei Yongjun --- drivers/pci/host/pci-hyperv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 6955ffdb..a8deeca 100644 --- a/drivers/pci/host/pci-hyperv.c +++ b/drivers/pci/host/pci-hyperv.c @@ -1466,8 +1466,7 @@ static void pci_devices_present_work(struct work_struct *work) if (hpdev->reported_missing) { found = true; put_pcichild(hpdev, hv_pcidev_ref_childlist); - list_del(&hpdev->list_entry); - list_add_tail(&hpdev->list_entry, &removed); + list_move_tail(&hpdev->list_entry, &removed); break; } }