From cf9ad1f3dc3bbaa19a626106890185d81be2fdfc Mon Sep 17 00:00:00 2001 From: Zhenzhong Duan Date: Mon, 4 Dec 2017 11:01:24 +0100 Subject: [PATCH] x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- xen/arch/x86/physdev.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.30.2