diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-01-27 06:36:38 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-02-05 01:42:07 +0300 |
commit | 862f9453bd1494f10b059076a3c97c3b90d248aa (patch) | |
tree | 7471fc0d93fcb79024d7baa2dd0bbc03bc466eb9 /drivers/ata/pata_oldpiix.c | |
parent | 7cdffeb534360609d57a39403ee951e08dcffbe7 (diff) | |
download | linux-862f9453bd1494f10b059076a3c97c3b90d248aa.tar.xz |
rtc: max77686: Use ARRAY_SIZE() instead of current array length
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>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/ata/pata_oldpiix.c')
0 files changed, 0 insertions, 0 deletions