summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-05-10 09:01:04 -0700
committerPatrick Venture <venture@google.com>2018-05-10 09:13:16 -0700
commit1df1a2c84dcc217425b69cea2dd60ce6871f15ec (patch)
treed4ea6a09d6ef2644890e5b91ca75e51816281b20
parent2075863894841165280974dd4d16fb86344df2fc (diff)
downloadphosphor-pid-control-1df1a2c84dcc217425b69cea2dd60ce6871f15ec.tar.gz
phosphor-pid-control-1df1a2c84dcc217425b69cea2dd60ce6871f15ec.zip
util: remove unused variable
Variable became obsolete and was left in although unused. Change-Id: I2953c1eea836fb96812a8834f1776aff16b76745 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--util.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/util.cpp b/util.cpp
index cf9ef81..1889256 100644
--- a/util.cpp
+++ b/util.cpp
@@ -27,8 +27,6 @@ static constexpr auto sysfs = "/sys/";
IOInterfaceType GetWriteInterfaceType(const std::string& path)
{
- std::string::size_type n;
-
if (path.empty() || "None" == path)
{
return IOInterfaceType::NONE;
@@ -45,8 +43,6 @@ IOInterfaceType GetWriteInterfaceType(const std::string& path)
IOInterfaceType GetReadInterfaceType(const std::string& path)
{
- std::string::size_type n;
-
if (path.empty() || "None" == path)
{
return IOInterfaceType::NONE;
OpenPOWER on IntegriCloud