From: Zhenzhong Duan Date: Mon, 4 Dec 2017 10:01:24 +0000 (+0100) Subject: x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cf9ad1f3dc3bbaa19a626106890185d81be2fdfc;p=people%2Fiwj%2Fxen.git x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI 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 Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index a5fedca671..380d36f6b9 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;