diff mbox

[v2] x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI

Message ID 52c7977e-cff2-4ebc-867f-1d90b678b6a1@default (mailing list archive)
State New, archived
Headers show

Commit Message

Zhenzhong Duan Oct. 10, 2017, 2:51 a.m. UTC
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 mbox

Patch

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;