Re: [PATCH 2/2] iommu/arm-smmu-v3: simplify parse_driver_options()

2020-01-09 Thread Robin Murphy
On 26/12/2019 9:51 am, Masahiro Yamada wrote: Using ARRAY_SIZE() instead of the sentinel is slightly simpler, IMHO. Given that it's fairly well-decided that we don't want to add any more of these anyway, I'd be inclined to lose the array/loop machinery altogether. As it is we'd need a lot

[PATCH 2/2] iommu/arm-smmu-v3: simplify parse_driver_options()

2019-12-26 Thread Masahiro Yamada
Using ARRAY_SIZE() instead of the sentinel is slightly simpler, IMHO. Signed-off-by: Masahiro Yamada --- drivers/iommu/arm-smmu-v3.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index