From: Chris Ferron <chris.e.ferron at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH 3/3] Remove some unused variables
Date: Mon, 21 May 2012 15:16:02 -0700 [thread overview]
Message-ID: <4FBABEA2.4080006@linux.intel.com> (raw)
In-Reply-To: 1337631510.2616.2.camel@sara
[-- 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);
next reply other threads:[~2012-05-21 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 22:16 Chris Ferron [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-21 20:20 [Powertop] [PATCH 3/3] Remove some unused variables Magnus Fromreide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBABEA2.4080006@linux.intel.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.