diff options
author | Emilio López <emilio@elopez.com.ar> | 2013-02-25 06:07:45 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-04 08:23:11 -0500 |
commit | f5f43dcfff3a3c7f7de4a0cfca0106a0ccd58bd7 (patch) | |
tree | 816bcf30003af000ce4edf5fc09a79c45a7b58ab /drivers/cpufreq/highbank-cpufreq.c | |
parent | 4b87581036849723242cadaa161e9b01234ef9ae (diff) |
cpufreq: highbank: do not initialize array with a loop
As uninitialized array members will be initialized to zero, we can
avoid using a for loop by setting a value to it.
Signed-off-by: Emilio López <emilio@elopez.com.ar>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-By: Mark Langsdorf <mark.langsdorf@calxeda.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/highbank-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/highbank-cpufreq.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/cpufreq/highbank-cpufreq.c b/drivers/cpufreq/highbank-cpufreq.c index 66e3a71b81a3..b61b5a3fad64 100644 --- a/drivers/cpufreq/highbank-cpufreq.c +++ b/drivers/cpufreq/highbank-cpufreq.c | |||
@@ -28,13 +28,7 @@ | |||
28 | 28 | ||
29 | static int hb_voltage_change(unsigned int freq) | 29 | static int hb_voltage_change(unsigned int freq) |
30 | { | 30 | { |
31 | int i; | 31 | u32 msg[HB_CPUFREQ_IPC_LEN] = {HB_CPUFREQ_CHANGE_NOTE, freq / 1000000}; |
32 | u32 msg[HB_CPUFREQ_IPC_LEN]; | ||
33 | |||
34 | msg[0] = HB_CPUFREQ_CHANGE_NOTE; | ||
35 | msg[1] = freq / 1000000; | ||
36 | for (i = 2; i < HB_CPUFREQ_IPC_LEN; i++) | ||
37 | msg[i] = 0; | ||
38 | 32 | ||
39 | return pl320_ipc_transmit(msg); | 33 | return pl320_ipc_transmit(msg); |
40 | } | 34 | } |