linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][next] Thermal: int3406_thermal: fix unused variable warning
@ 2017-09-01  9:58 Colin King
  2017-09-04  3:36 ` Zhang Rui
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2017-09-01  9:58 UTC (permalink / raw)
  To: Zhang Rui, Eduardo Valentin, linux-pm; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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 <colin.king@canonical.com>
---
 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))
-- 
2.14.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH][next] Thermal: int3406_thermal: fix unused variable warning
  2017-09-01  9:58 [PATCH][next] Thermal: int3406_thermal: fix unused variable warning Colin King
@ 2017-09-04  3:36 ` Zhang Rui
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang Rui @ 2017-09-04  3:36 UTC (permalink / raw)
  To: Colin King, Eduardo Valentin, linux-pm; +Cc: kernel-janitors, linux-kernel

On Fri, 2017-09-01 at 10:58 +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> 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 <colin.king@canonical.com>

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))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-04  3:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-01  9:58 [PATCH][next] Thermal: int3406_thermal: fix unused variable warning Colin King
2017-09-04  3:36 ` Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).