]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86/physdev: remove redundant code in branch MAP_PIRQ_TYPE_MSI
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Mon, 4 Dec 2017 10:01:24 +0000 (11:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Dec 2017 10:01:24 +0000 (11:01 +0100)
Same code is already in allocate_and_map_msi_pirq()

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>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/physdev.c

index a5fedca67172fa18e66787561253f039c333228a..380d36f6b9a9fc216879ff41bc99d98b56c0326c 100644 (file)
@@ -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;