Fix oops. Too late now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31554 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2012-01-04 00:23:04 +00:00
parent eb488ac792
commit d07c1d57a4

View file

@ -146,7 +146,7 @@ int cpufrequency_linux(int cpu)
cpu_dev = open(path, O_RDONLY);
if (cpu_dev < 0)
return -1;
if (read(cpu_dev, temp, sizeof(tmp)) >= 0)
if (read(cpu_dev, temp, sizeof(temp)) >= 0)
ret = atoi(temp);
close(cpu_dev);
return ret;
@ -161,7 +161,7 @@ int scalingfrequency_linux(int cpu)
cpu_dev = open(path, O_RDONLY);
if (cpu_dev < 0)
return -1;
if (read(cpu_dev, temp, sizeof(tmp)) >= 0)
if (read(cpu_dev, temp, sizeof(temp)) >= 0)
ret = atoi(temp);
close(cpu_dev);
return ret;