Skip to content

Commit 0e77488

Browse files
masahir0yEduardo Valentin
authored andcommitted
thermal: qoriq: remove useless call for of_thermal_get_trip_points()
Building this driver with W=1 reports: warning: variable 'trip' set but not used [-Wunused-but-set-variable] The call for of_thermal_get_trip_points() is useless. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent 0833289 commit 0e77488

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/thermal/qoriq_thermal.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ static struct thermal_zone_of_device_ops tmu_tz_ops = {
195195
static int qoriq_tmu_probe(struct platform_device *pdev)
196196
{
197197
int ret;
198-
const struct thermal_trip *trip;
199198
struct qoriq_tmu_data *data;
200199
struct device_node *np = pdev->dev.of_node;
201200
u32 site = 0;
@@ -243,8 +242,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev)
243242
goto err_tmu;
244243
}
245244

246-
trip = of_thermal_get_trip_points(data->tz);
247-
248245
/* Enable monitoring */
249246
site |= 0x1 << (15 - data->sensor_id);
250247
tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr);

0 commit comments

Comments
 (0)