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

Stephen Bates sbates at raithlin.com
Mon Jan 9 11:37:06 PST 2017


> 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



More information about the Linux-nvme mailing list