Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1554673 > unrolled thread

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

Started by"Stephen Bates" <sbates@raithlin.com>
First post2017-01-09 21:10 +0100
Last post2017-01-09 21:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/2] nvme: improve cmb sysfs reporting "Stephen Bates" <sbates@raithlin.com> - 2017-01-09 21:10 +0100

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

From"Stephen Bates" <sbates@raithlin.com>
Date2017-01-09 21:10 +0100
SubjectRe: [PATCH 2/2] nvme: improve cmb sysfs reporting
Message-ID<sXOqu-dj-19@gated-at.bofh.it>
> 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web