* Re: [Powertop] [PATCH 3/3] Remove some unused variables
@ 2012-05-21 22:16 Chris Ferron
0 siblings, 0 replies; 2+ messages in thread
From: Chris Ferron @ 2012-05-21 22:16 UTC (permalink / raw)
To: powertop
[-- Attachment #1: Type: text/plain, Size: 2261 bytes --]
patch applied
Thank You
-Chris
On 04/22/2012 06:12 AM, Magnus Fromreide wrote:
> Signed-off-by: Magnus Fromreide<magfr(a)lysator.liu.se>
> ---
> src/calibrate/calibrate.cpp | 6 ------
> src/tuning/runtime.cpp | 2 --
> src/tuning/tuningusb.cpp | 2 --
> 3 files changed, 10 deletions(-)
>
> diff --git a/src/calibrate/calibrate.cpp b/src/calibrate/calibrate.cpp
> index 7dd8a5f..cf00fcf 100644
> --- a/src/calibrate/calibrate.cpp
> +++ b/src/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/src/tuning/runtime.cpp b/src/tuning/runtime.cpp
> index 8f428e6..b57d53e 100644
> --- a/src/tuning/runtime.cpp
> +++ b/src/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/src/tuning/tuningusb.cpp b/src/tuning/tuningusb.cpp
> index b483ce2..74bbacf 100644
> --- a/src/tuning/tuningusb.cpp
> +++ b/src/tuning/tuningusb.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);
^ permalink raw reply [flat|nested] 2+ messages in thread* [Powertop] [PATCH 3/3] Remove some unused variables
@ 2012-05-21 20:20 Magnus Fromreide
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Fromreide @ 2012-05-21 20:20 UTC (permalink / raw)
To: powertop
[-- Attachment #1: Type: text/plain, Size: 2016 bytes --]
Signed-off-by: Magnus Fromreide <magfr(a)lysator.liu.se>
---
src/calibrate/calibrate.cpp | 6 ------
src/tuning/runtime.cpp | 2 --
src/tuning/tuningusb.cpp | 2 --
3 files changed, 10 deletions(-)
diff --git a/src/calibrate/calibrate.cpp b/src/calibrate/calibrate.cpp
index 7dd8a5f..cf00fcf 100644
--- a/src/calibrate/calibrate.cpp
+++ b/src/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/src/tuning/runtime.cpp b/src/tuning/runtime.cpp
index 8f428e6..b57d53e 100644
--- a/src/tuning/runtime.cpp
+++ b/src/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/src/tuning/tuningusb.cpp b/src/tuning/tuningusb.cpp
index b483ce2..74bbacf 100644
--- a/src/tuning/tuningusb.cpp
+++ b/src/tuning/tuningusb.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-21 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 22:16 [Powertop] [PATCH 3/3] Remove some unused variables Chris Ferron
-- strict thread matches above, loose matches on Subject: below --
2012-05-21 20:20 Magnus Fromreide
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.