Re: [PATCH 05/12] dmar: Use for_each_If

2018-07-23 Thread Joerg Roedel
On Mon, Jul 09, 2018 at 10:36:43AM +0200, Daniel Vetter wrote: > #define for_each_active_drhd_unit(drhd) > \ > list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \ > - if (drhd->ignored) {} else > + for_each_if (!drhd

[PATCH 05/12] dmar: Use for_each_If

2018-07-09 Thread Daniel Vetter
Avoids the inverted conditions compared to the open coded version. Signed-off-by: Daniel Vetter Cc: Joerg Roedel --- include/linux/dmar.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/linux/dmar.h b/include/linux/dmar.h index e2433bc50210..99397504e75e 100