From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhang Rui Subject: Re: [PATCH][next] Thermal: int3406_thermal: fix unused variable warning Date: Mon, 04 Sep 2017 11:36:41 +0800 Message-ID: <1504496201.2762.2.camel@intel.com> References: <20170901095809.16787-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20170901095809.16787-1-colin.king@canonical.com> Sender: linux-kernel-owner@vger.kernel.org To: Colin King , Eduardo Valentin , linux-pm@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-pm@vger.kernel.org On Fri, 2017-09-01 at 10:58 +0100, Colin King wrote: > From: Colin Ian King > > The variable index was introduced by an earlier commit and is not > used, and hence should be removed. > > Cleans up warning: "unused variable 'index'" > > Fixes: c658894562ba ("Thermal: int3406_thermal: fix thermal sysfs > I/F") > Signed-off-by: Colin Ian King thanks, I will fold this cleanup into the previous commit c658894562ba ("Thermal: int3406_thermal: fix thermal sysfs I/F"). thanks, rui > --- >  drivers/thermal/int340x_thermal/int3406_thermal.c | 1 - >  1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/int340x_thermal/int3406_thermal.c > b/drivers/thermal/int340x_thermal/int3406_thermal.c > index e31509ead1c9..f69ab026ba24 100644 > --- a/drivers/thermal/int340x_thermal/int3406_thermal.c > +++ b/drivers/thermal/int340x_thermal/int3406_thermal.c > @@ -113,7 +113,6 @@ static void int3406_thermal_get_limit(struct > int3406_thermal_data *d) >  { >   acpi_status status; >   unsigned long long lower_limit, upper_limit; > - int index; >   >   status = acpi_evaluate_integer(d->handle, "DDDL", NULL, > &lower_limit); >   if (ACPI_SUCCESS(status))