From: Rickard Strandqvist Date: Tue, 29 Jul 2014 16:12:19 +0000 (+0200) Subject: cpupower: bench: parse.c: Fix several minor errors X-Git-Tag: omap-for-v3.17/fixes-against-rc2~142^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13f6de52b149c030b0d529a3d8d68267ed20f01c;p=pandora-kernel.git 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 Signed-off-by: Thomas Renninger Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed