Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318684
| From | Laxman Dewangan <ldewangan@nvidia.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length |
| Date | 2016-01-27 07:10 +0100 |
| Message-ID | <qVrsK-7FL-19@gated-at.bofh.it> (permalink) |
| References | <qVp7A-5OH-5@gated-at.bofh.it> <qVp7A-5OH-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wednesday 27 January 2016 09:06 AM, Javier Martinez Canillas wrote: > It is better to use the ARRAY_SIZE() macro instead of the array length > to avoid bugs if the array is later changed and the length not updated. > > Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> > Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > Reviewed-by: Andi Shyti <andi.shyti@samsung.com> > Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length Javier Martinez Canillas <javier@osg.samsung.com> - 2016-01-27 04:40 +0100 Re: [PATCH v4 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-27 07:10 +0100
csiph-web