diff options
| author | Rickard Strandqvist <[email protected]> | 2014-07-29 16:12:19 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2014-07-29 23:57:13 +0000 |
| commit | 13f6de52b149c030b0d529a3d8d68267ed20f01c (patch) | |
| tree | 1cb090f8c033e0f4fd221f0bd84bec4e65dd3fc2 /scripts/analyze_suspend.py | |
| parent | cpupower: mperf monitor: Correct use of ! and & (diff) | |
| download | kernel-13f6de52b149c030b0d529a3d8d68267ed20f01c.tar.gz kernel-13f6de52b149c030b0d529a3d8d68267ed20f01c.zip | |
cpupower: bench: parse.c: Fix several minor errors
Resolved several minor errors in prepare_config() and made some additional improvements.
Earlier, the risk of file stream that was not closed. Misuse of strncpy, and the use of strncmp with strlen that makes it pointless.
I also check that sscanf has been successful, otherwise continue to the next line. And minimized the use of magic numbers.
This was found using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <[email protected]>
Signed-off-by: Thomas Renninger <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/analyze_suspend.py')
0 files changed, 0 insertions, 0 deletions
