Commit d473327f authored by Lin Ruizhe's avatar Lin Ruizhe Committed by Daniel Lezcano
Browse files

thermal/drivers/ti-soc-thermal/bandgap Remove unused variable 'val'

The function ti_bandgap_restore_ctxt() restores the context at resume
time. It checks if the sensor has a counter, reads the register but
does nothing with the value.

The block was probably omitted by the commit b87ea759

.

Remove the unused variable as well as the block using it as we can
consider it as dead code.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: b87ea759

 ("staging: omap-thermal: fix context restore function")
Signed-off-by: default avatarLin Ruizhe <linruizhe@huawei.com>
Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
Tested-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210421084256.57591-1-linruizhe@huawei.com
parent bd5d5536
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment