summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorJérémy Lefaure2017-10-01 21:30:54 +0200
committerMauro Carvalho Chehab2017-10-27 15:38:24 +0200
commitbc64ce98d6493337b61b958da454ecc9b35237a5 (patch)
tree4e605bb530ce52e78c55651f0877bf52d890f20d /drivers/media/platform
parentmedia: staging/atomisp: make six local functions static to appease sparse (diff)
downloadkernel-qcow2-linux-bc64ce98d6493337b61b958da454ecc9b35237a5.tar.gz
kernel-qcow2-linux-bc64ce98d6493337b61b958da454ecc9b35237a5.tar.xz
kernel-qcow2-linux-bc64ce98d6493337b61b958da454ecc9b35237a5.zip
media: staging: atomisp: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also, it is useless to use a variable to store this constant calculated at compile time. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform')
0 files changed, 0 insertions, 0 deletions