util: use cannonical form of ARRAY_SIZE
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 31 Jul 2017 18:45:48 +0000 (19:45 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Aug 2017 19:43:33 +0000 (20:43 +0100)
commitc9ec28b1c09be3d60520bf96dec8445d60bd75af
tree514c20224e3677d09f305d9b2a344dd0409fec07
parentdf8321370204434f2a7ca7cf29be973e060781ed
util: use cannonical form of ARRAY_SIZE

Namely sizeof(foo)/sizeof((foo)[0])

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/util/macros.h