]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: prefer ARRAY_SIZE instead of a magic number
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 5 May 2020 12:37:53 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 11:26:42 +0000 (13:26 +0200)
commit899605d22efeb8d163c0a6ceb5e822c6b9b0a0f6
treec3e8e6319ab047639e258a170381734de5cb6f67
parent699ba463011be44ff7ea52d8b71fc7b5188e8ac4
staging: wfx: prefer ARRAY_SIZE instead of a magic number

When possible, we prefer to use the macro ARRAY_SIZE rather than hard
coding the number of elements.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200505123757.39506-12-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/data_tx.c