summaryrefslogtreecommitdiff
path: root/tools/power/cpupower/utils/helpers
diff options
context:
space:
mode:
authorPalmer Cox <p@lmercox.com>2012-11-27 16:17:44 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-28 02:07:18 +0400
commitfb8eaeb7ab96b09c910e36abf7df7f9ecbb0fb60 (patch)
tree4f25dc64aff0df779cb44d2718b98baeb5ebb070 /tools/power/cpupower/utils/helpers
parent275a4dc441437d0074457591b46a45d7e45a817d (diff)
downloadlinux-fb8eaeb7ab96b09c910e36abf7df7f9ecbb0fb60.tar.xz
cpupower tools: Fix minor warnings
Fix minor warnings reported with GCC 4.6: * The sysfs_write_file function is unused - remove it. * The pr_mon_len in the print_header function is unsed - remove it. Signed-off-by: Palmer Cox <p@lmercox.com> Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power/cpupower/utils/helpers')
-rw-r--r--tools/power/cpupower/utils/helpers/sysfs.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/power/cpupower/utils/helpers/sysfs.c b/tools/power/cpupower/utils/helpers/sysfs.c
index 96e28c124b5c..38ab91629463 100644
--- a/tools/power/cpupower/utils/helpers/sysfs.c
+++ b/tools/power/cpupower/utils/helpers/sysfs.c
@@ -37,25 +37,6 @@ unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen)
return (unsigned int) numread;
}
-static unsigned int sysfs_write_file(const char *path,
- const char *value, size_t len)
-{
- int fd;
- ssize_t numwrite;
-
- fd = open(path, O_WRONLY);
- if (fd == -1)
- return 0;
-
- numwrite = write(fd, value, len);
- if (numwrite < 1) {
- close(fd);
- return 0;
- }
- close(fd);
- return (unsigned int) numwrite;
-}
-
/*
* Detect whether a CPU is online
*