summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_cmd640.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-01-27 06:36:38 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-02-05 01:42:07 +0300
commit862f9453bd1494f10b059076a3c97c3b90d248aa (patch)
tree7471fc0d93fcb79024d7baa2dd0bbc03bc466eb9 /drivers/ata/pata_cmd640.c
parent7cdffeb534360609d57a39403ee951e08dcffbe7 (diff)
downloadlinux-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_cmd640.c')
0 files changed, 0 insertions, 0 deletions