Re: [PATCH] x86/irq: simplify loop in unmap_domain_pirq

2021-02-22 Thread Roger Pau Monné
On Fri, Feb 19, 2021 at 03:39:14PM +0100, Jan Beulich wrote: > On 10.02.2021 10:22, Roger Pau Monne wrote: > > 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. >

Re: [PATCH] x86/irq: simplify loop in unmap_domain_pirq

2021-02-19 Thread Jan Beulich
On 10.02.2021 10:22, Roger Pau Monne wrote: > 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

[PATCH] x86/irq: simplify loop in unmap_domain_pirq

2021-02-10 Thread Roger Pau Monne
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.