Tag: e563637b5fef2d1fbcd1efe457d4168fde7b3e0d

staging: comedi: Use ARRAY_SIZE for sizes of arrays

Author: Janani Ravichandran <janani.rvchndrn@gmail.com> Use ARRAY_SIZE to calculate the size of an array to make code concise. The semantic patch used can be found here: https://github.com/coccinelle/coccinellery/commit/9cbab452a3a2e18439e8386d6c4a68ee42c3ee2b Signed-off-by: Janani Ravichandran Signed-off-by: Greg Kroah-Hartman — drivers/staging/comedi/drivers/ni_mio_c_common.c | 0 drivers/staging/comedi/drivers/ni_mio_common.c | 7 ++—– 2 files changed, 2 insertions(+), 5 deletions(-)   diff –git a/drivers/staging/comedi/drivers/ni_mio_c_common.c b/drivers/staging/comedi/drivers/ni_mio_c_common.c new file mode …

Continue reading