git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a511de
)
pxa3xx-cpufreq.c: Avoid using ARRAY_AND_SIZE(e) as a function argument
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Tue, 13 Aug 2013 13:02:25 +0000
(15:02 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 14 Aug 2013 20:24:23 +0000
(22:24 +0200)
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
patch
|
blob
|
history
diff --cc
drivers/cpufreq/pxa3xx-cpufreq.c
Simple merge