From: Zhenzhong Duan <zhenzhong.duan@oracle.com>
To: xen-devel@lists.xenproject.org
Cc: konrad.wilk@oracle.com, andrew.cooper3@citrix.com,
joe.jin@oracle.com, srinivas.eeda@oracle.com, jbeulich@suse.com,
roger.pau@citrix.com
Subject: [PATCH v2] x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI
Date: Mon, 9 Oct 2017 19:51:38 -0700 (PDT) [thread overview]
Message-ID: <52c7977e-cff2-4ebc-867f-1d90b678b6a1@default> (raw)
Same code is already in allocate_and_map_msi_pirq()
-v2: remove unnecessory comment (Suggested by Jan and Roger)
added 'x86/physdev:' tag to commit subject (Suggested by Konrad)
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Reviewed-by: Joe Jin <joe.jin@oracle.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
xen/arch/x86/physdev.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c
index 0eb4097..bc20b14 100644
--- a/xen/arch/x86/physdev.c
+++ b/xen/arch/x86/physdev.c
@@ -122,9 +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);
break;
--
1.7.3
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
reply other threads:[~2017-10-10 2:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52c7977e-cff2-4ebc-867f-1d90b678b6a1@default \
--to=zhenzhong.duan@oracle.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=joe.jin@oracle.com \
--cc=konrad.wilk@oracle.com \
--cc=roger.pau@citrix.com \
--cc=srinivas.eeda@oracle.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).