Skip to contentSkip to conversation

x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI

PATCH New Zhenzhong Duan 1 participant 1 message Oct 10, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI

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)

---
 xen/arch/x86/physdev.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
xen/arch/x86/physdev.c +0 -3
index 0eb4097..bc20b14 100644
@@ -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;
Signature · 6 lines
1.7.3

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel