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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

patchbot
commit cf9ad1f3dc3bbaa19a626106890185d81be2fdfc
Author:     Zhenzhong Duan <[hidden email]>
AuthorDate: Mon Dec 4 11:01:24 2017 +0100
Commit:     Jan Beulich <[hidden email]>
CommitDate: Mon Dec 4 11:01:24 2017 +0100

    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 <[hidden email]>
    Reviewed-by: Joe Jin <[hidden email]>
    Reviewed-by: Roger Pau Monné <[hidden email]>
    Reviewed-by: Konrad Rzeszutek Wilk <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
---
 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 a5fedca..380d36f 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;
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog