Re: [Powertop] [PATCH 3/3] Remove some unused variables
Chris Ferron <chris.e.ferron at linux.intel.com> Mon, 21 May 2012 15:16:02 -0700
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <[email protected]> |
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);