x86/irq: simplify loop in unmap_domain_pirq
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 9 Apr 2021 07:20:57 +0000 (09:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:20:57 +0000 (09:20 +0200)
commitf811f890ff549fe433091076da308a44b906f271
tree2ab7a2aef50735343e10cb0a475e42ea63130731
parente113ed7134118757980a1d12837fa0f118f81a05
x86/irq: simplify loop in unmap_domain_pirq

The for loop in unmap_domain_pirq is unnecessary complicated, with
several places where the index is incremented, and also different
exit conditions spread between the loop body.

Simplify it by looping over each possible PIRQ using the for loop
syntax, and remove all possible in-loop exit points.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/irq.c