arch/arm/mach-kirkwood: Avoid using ARRAY_AND_SIZE(e) as a function argument
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 11 Aug 2013 16:51:56 +0000 (18:51 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 12 Aug 2013 19:10:23 +0000 (19:10 +0000)
commitf4ada24bd606516ee04a892164deb8c80d2b9be9
tree56dd73e40b008c2c58fc5fd7c8f74750a90be034
parentd04d97c2646dc436ef81ecd3b51e3ca50c716d0d
arch/arm/mach-kirkwood: Avoid using ARRAY_AND_SIZE(e) as a function argument

Replace ARRAY_AND_SIZE(e) in function argument position to avoid hiding the
arity of the called function.

The semantic match that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e,f;
@@

f(...,
- ARRAY_AND_SIZE(e)
+ e,ARRAY_SIZE(e)
  ,...)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/openrd-setup.c
arch/arm/mach-kirkwood/rd88f6281-setup.c