Skip to content
Commit f4ada24b authored by Julia Lawall's avatar Julia Lawall Committed by Jason Cooper
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent d04d97c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment