RE: [PATCH v1 3/5] iommufd/selftest: Convert cache invalidation mocks to the core array loop

From: Tian, Kevin

Date: Fri Jul 03 2026 - 02:23:23 EST


> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Sent: Tuesday, June 30, 2026 5:16 AM
>
> + /*
> + * The core re-invokes this op for the remaining requests, so handle
> one
> + * request per call. A zero-length array only probes the type,
> validated
> + * above.
> + */
> + if (!array->entry_num)
> + goto out;
>

it's clearer to directly return 0 here.

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>