]> git.baikalelectronics.ru Git - kernel.git/commit
pxa3xx-cpufreq.c: Avoid using ARRAY_AND_SIZE(e) as a function argument
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 13 Aug 2013 13:02:25 +0000 (15:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Aug 2013 20:24:23 +0000 (22:24 +0200)
commit6947d88996e43d85b909770864828bca90a3f11d
tree57f72cd127eeda0ec13a07b0b89034deae98cdde
parent02b9d3a70f8222ab69e41a7c699c9276a0cfe411
pxa3xx-cpufreq.c: 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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/pxa3xx-cpufreq.c