From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1525672302713242339==" MIME-Version: 1.0 From: Chris Ferron Subject: Re: [Powertop] [PATCH 3/3] Remove some unused variables Date: Mon, 21 May 2012 15:16:02 -0700 Message-ID: <4FBABEA2.4080006@linux.intel.com> In-Reply-To: 1337631510.2616.2.camel@sara To: powertop@lists.01.org List-ID: --===============1525672302713242339== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable patch applied Thank You -Chris On 04/22/2012 06:12 AM, Magnus Fromreide wrote: > Signed-off-by: Magnus Fromreide > --- > 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 =3D readdir(dir); > > if (!entry) > @@ -190,8 +188,6 @@ static void find_backlight(void) > if (!dir) > return; > while (1) { > - ifstream file; > - > entry =3D readdir(dir); > > if (!entry) > @@ -232,8 +228,6 @@ static void find_scsi_link(void) > if (!dir) > return; > while (1) { > - ifstream file; > - > entry =3D 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, cons= t char *bus, const char * > > int runtime_tunable::good_bad(void) > { > - ifstream file; > string content; > > content =3D 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 =3D 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 =3D 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 =3D readdir(dir); --===============1525672302713242339==--