staging: rts5208: Assign array_size() to a variable
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 10 Jul 2020 18:33:50 +0000 (13:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jul 2020 13:36:31 +0000 (15:36 +0200)
commit8ffe5f36d7329c1a251ebf80ff9b9111f8739246
tree9ea8a63b0c8c94d9e91a00f8f5018b79a13707a8
parentcb22ab20c969615296475b7068c891ca3a849fa9
staging: rts5208: Assign array_size() to a variable

Assign array_size() to variable _size_ and use it in multiple places.

This issue was found with the help of Coccinelle and, audited and fixed
manually.

Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200710183350.GA8376@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_chip.c