aboutsummaryrefslogtreecommitdiff
path: root/src/devlist.cpp
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2012-09-19 00:13:17 +0900
committerChris E Ferron <chris.e.ferron@linux.intel.com>2012-09-18 08:42:02 -0700
commitb3c44a8406e4b4e82ad06bf0b54c7411a66735af (patch)
tree462c4fd60ec941b9a8cdc983a2389a54f7ff879c /src/devlist.cpp
parent7efd0813b7ec9fe844a4177059eeebae4575390a (diff)
downloadpowertop-2.0-v2-b3c44a8406e4b4e82ad06bf0b54c7411a66735af.tar.gz
devlist: Remove an unnecessary sprintf
The 'filename' is not used in the loop anymore. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Diffstat (limited to 'src/devlist.cpp')
-rw-r--r--src/devlist.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/devlist.cpp b/src/devlist.cpp
index 5ec0a8b..828f47f 100644
--- a/src/devlist.cpp
+++ b/src/devlist.cpp
@@ -147,7 +147,6 @@ void collect_open_devices(void)
continue;
dev->pid = strtoull(entry->d_name, NULL, 10);
strncpy(dev->device, link, 251);
- sprintf(filename, "/proc/%s/comm", entry->d_name);
strncpy(dev->comm, read_sysfs_string("/proc/%s/comm", entry->d_name).c_str(), 31);
target->push_back(dev);