lkml.org 
[lkml]   [2017]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH][next] Thermal: int3406_thermal: fix unused variable warning
Date
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
\
 
 \ /
  Last update: 2017-09-01 11:59    [W:0.057 / U:8.516 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site