[PATCH 6/8] cpu: cpufreq: tidy up memset usage
Colin King
colin.king at canonical.com
Mon Jul 23 13:02:56 UTC 2012
From: Colin Ian King <colin.king at canonical.com>
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/cpu/cpufreq/cpufreq.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/cpu/cpufreq/cpufreq.c b/src/cpu/cpufreq/cpufreq.c
index 014d31c..f4a461b 100644
--- a/src/cpu/cpufreq/cpufreq.c
+++ b/src/cpu/cpufreq/cpufreq.c
@@ -217,7 +217,6 @@ static unsigned long get_performance_repeat(fwts_framework *fw,
static char *HzToHuman(unsigned long hz)
{
static char buffer[1024];
- memset(buffer, 0, 1024);
unsigned long long Hz;
Hz = hz;
@@ -267,7 +266,7 @@ static void do_cpu(fwts_framework *fw, int cpu)
unsigned long cpu_top_speed = 0;
memset(freqs, 0, sizeof(freqs));
- memset(line, 0, 4096);
+ memset(line, 0, sizeof(line));
set_governor(fw, cpu);
--
1.7.10.4
More information about the fwts-devel
mailing list