From patchwork Mon Oct 9 06:00:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhenzhong Duan X-Patchwork-Id: 9992177 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 2ED7B60244 for ; Mon, 9 Oct 2017 06:02:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2081627F8F for ; Mon, 9 Oct 2017 06:02:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14FE42851B; Mon, 9 Oct 2017 06:02:48 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9A20927F8F for ; Mon, 9 Oct 2017 06:02:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1R73-0007UA-Vb; Mon, 09 Oct 2017 06:00:25 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1R73-0007U4-NN for xen-devel@lists.xenproject.org; Mon, 09 Oct 2017 06:00:25 +0000 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id 1F/CA-02225-8701BD95; Mon, 09 Oct 2017 06:00:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRWlGSWpSXmKPExsUyZ7p8oG6pwO1 IgyNz5Cy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyTU/8wFRxirTj4aBdbA+Muli5GLg4hga1M Eo0T25ggnIVMEotbjkBlrjJKbD7VDZTh5OAVEJQ4OfMJC4RtJbH33js2EJtFQEvi0YPzrCA2m 4CBxJrp38DiIgKqEocbbrN3MXJwMAtESjTcCQMJCws4SXRuego2RkJASeLf1m4WiBJ1ifXzhE DCzALaEssWvmaGCEtLLP/HAVFtKPF541LmCYz8s5DcMwuheRaS5lkIzQsYWVYxqhenFpWlFum a6SUVZaZnlOQmZuboGhoY6+WmFhcnpqfmJCYV6yXn525iBIZlPQMD4w7GK23OhxglOZiURHkz uW9HCvEl5adUZiQWZ8QXleakFh9ilOHgUJLgXccPlBMsSk1PrUjLzAFGCExagoNHSYS3gw8oz VtckJhbnJkOkTrFaMxx4+H1P0wcHTfv/mESYsnLz0uVEufdBzJJAKQ0ozQPbhAsci8xykoJ8z IyMDAI8RSkFuVmlqDKv2IU52BUEuZ1BpnCk5lXArfvFdApTECnMBbfADmlJBEhJdXAuGdCr86 LNWfPP56Xd+14eeDp/g9StcUfoqwDevcEzGu/zdk799hz47DKSdLvqvtvsv04uCLriV/orQl2 vMfrL99pNV9m1PSCzfJ/zt35aqk/Ts5W0D99YQabn+rsM1aaOmX/lDM6Kvnz677P/Wkifmxb2 8Kb8x9cfFtx8G0Nq9DKCq83acZ5XUosxRmJhlrMRcWJABBoKn3XAgAA X-Env-Sender: zhenzhong.duan@oracle.com X-Msg-Ref: server-14.tower-31.messagelabs.com!1507528819!109168728!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5100 invoked from network); 9 Oct 2017 06:00:21 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 9 Oct 2017 06:00:21 -0000 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v9960IiG016928 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 9 Oct 2017 06:00:19 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v9960I8Q027816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 9 Oct 2017 06:00:18 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v9960IdL020543 for ; Mon, 9 Oct 2017 06:00:18 GMT MIME-Version: 1.0 Message-ID: <313f1c99-82f0-4433-b778-904856e6e333@default> Date: Sun, 8 Oct 2017 23:00:15 -0700 (PDT) From: Zhenzhong Duan To: X-Mailer: Zimbra on Oracle Beehive Content-Disposition: inline X-Source-IP: userv0022.oracle.com [156.151.31.74] Cc: Joe Jin , Srinivas REDDY Eeda Subject: [Xen-devel] [PATCH] Remove redundant code in branch MAP_PIRQ_TYPE_MSI X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Same code is already in allocate_and_map_msi_pirq() Signed-off-by: Zhenzhong Duan Reviewed-by: Joe Jin Reviewed-by: Roger Pau Monné Reviewed-by: Konrad Rzeszutek Wilk --- xen/arch/x86/physdev.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index 0eb4097..aa02d18 100644 --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -122,8 +122,6 @@ int physdev_map_pirq(domid_t domid, int type, int *index, int *pirq_p, break; case MAP_PIRQ_TYPE_MSI: - if ( !msi->table_base ) - msi->entry_nr = 1; /* fallthrough */ case MAP_PIRQ_TYPE_MULTI_MSI: ret = allocate_and_map_msi_pirq(d, *index, pirq_p, type, msi);