Commit 309dca51 authored by Colin Ian King's avatar Colin Ian King Committed by Andy Shevchenko

platform/x86: intel_ips: remove redundant variables slope and offset

Variables slope and offset are being assigned but are never used hence
they are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'slope' set but not used [-Wunused-but-set-variable]
warning: variable 'offset' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent e78fd3c3
...@@ -858,10 +858,7 @@ static u16 read_mgtv(struct ips_driver *ips) ...@@ -858,10 +858,7 @@ static u16 read_mgtv(struct ips_driver *ips)
static u16 read_ptv(struct ips_driver *ips) static u16 read_ptv(struct ips_driver *ips)
{ {
u16 val, slope, offset; u16 val;
slope = (ips->pta_val & PTA_SLOPE_MASK) >> PTA_SLOPE_SHIFT;
offset = ips->pta_val & PTA_OFFSET_MASK;
val = thm_readw(THM_PTV) & PTV_MASK; val = thm_readw(THM_PTV) & PTV_MASK;
......
Markdown is supported
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