]> git.baikalelectronics.ru Git - kernel.git/commit
[media] it913x-fe: use ARRAY_SIZE() as a cleanup
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Aug 2012 05:51:20 +0000 (02:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 15 Aug 2012 21:47:10 +0000 (18:47 -0300)
commita7b506ea0c70f4cd082590c809d85c224f1b34a9
treeeaecebf44e6a9f64e6a96b7b6519fac289a3c4b6
parentb65dcf7e67f1337698f2551f2ec7e5fe43429df4
[media] it913x-fe: use ARRAY_SIZE() as a cleanup

This code looks suspicious, but it turns out that "nv" is an array of u8
so sizeof() is the same as ARRAY_SIZE().  Using ARRAY_SIZE() is more
readable though.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/it913x-fe.c