The following patch removes a couple of unused variables.
Could you please apply it?

---
 calibrate/calibrate.cpp |    6 ------
 tuning/runtime.cpp      |    2 --
 tuning/usb.cpp          |    2 --
 3 files changed, 10 deletions(-)

diff --git a/calibrate/calibrate.cpp b/calibrate/calibrate.cpp
index 4a32042..a2bf179 100644
--- a/calibrate/calibrate.cpp
+++ b/calibrate/calibrate.cpp
@@ -145,8 +145,6 @@ static void find_all_rfkill(void)
        if (!dir)
                return;
        while (1) {
-               ifstream file;
-
                entry = readdir(dir);
 
                if (!entry)
@@ -190,8 +188,6 @@ static void find_backlight(void)
        if (!dir)
                return;
        while (1) {
-               ifstream file;
-
                entry = readdir(dir);
 
                if (!entry)
@@ -232,8 +228,6 @@ static void find_scsi_link(void)
        if (!dir)
                return;
        while (1) {
-               ifstream file;
-
                entry = readdir(dir);
 
                if (!entry)
diff --git a/tuning/runtime.cpp b/tuning/runtime.cpp
index 3c6dae8..b592b1d 100644
--- a/tuning/runtime.cpp
+++ b/tuning/runtime.cpp
@@ -83,7 +83,6 @@ runtime_tunable::runtime_tunable(const char *path, const char 
*bus, const char *
 
 int runtime_tunable::good_bad(void)
 {
-       ifstream file;
        string content;
 
        content = read_sysfs_string(runtime_path);
@@ -131,7 +130,6 @@ void add_runtime_tunables(const char *bus)
        if (!dir)
                return;
        while (1) {
-               ifstream file;
                class runtime_tunable *runtime;
 
                entry = readdir(dir);
diff --git a/tuning/usb.cpp b/tuning/usb.cpp
index 6bcfb07..a49600f 100644
--- a/tuning/usb.cpp
+++ b/tuning/usb.cpp
@@ -81,7 +81,6 @@ usb_tunable::usb_tunable(const char *path, const char *name) 
: tunable("", 0.9,
 
 int usb_tunable::good_bad(void)
 {
-       ifstream file;
        string content;
 
        content = read_sysfs_string(usb_path);
@@ -127,7 +126,6 @@ void add_usb_tunables(void)
        if (!dir)
                return;
        while (1) {
-               ifstream file;
                class usb_tunable *usb;
 
                entry = readdir(dir);
-- 
1.7.10



_______________________________________________
Power mailing list
[email protected]
https://bughost.org/mailman/listinfo/power

Reply via email to