On Mon, Apr 25, 2022 at 10:32:10AM +0200, Jan Beulich wrote:
> As of 68a8aa5d7264 ("iommu: make map and unmap take a page count,
> similar to flush") there's no need anymore to have a loop here.
>
> Suggested-by: Roger Pau Monné <[email protected]>
> Signed-off-by: Jan Beulich <[email protected]>
Reviewed-by: Roger Pau Monné <[email protected]>
I wonder whether we should have a macro to ignore returns from
__must_check attributed functions. Ie:
#define IGNORE_RETURN(exp) while ( exp ) break;
As to avoid confusion (and having to reason) whether the usage of
while is correct. I always find it confusing to assert such loop
expressions are correct.
Thanks, Roger.