Re: [PATCH 2/2] nvme: improve cmb sysfs reporting

From: Stephen Bates
Date: Mon Jan 09 2017 - 15:02:14 EST


> Minor nit below
>
>
>> +
>> + for (i = NVME_CMB_CAP_SQS; i <= NVME_CMB_CAP_WDS; i++)
>>
> I'd prefer seeing (i = 0; i < ARRAY_SIZE(..); i++) because it provides
> automatic bounds checking against future code.
>

Thanks Jon, I will take a look at doing this in a V1.

Stephen