Re: [PATCH] thermal/intel_powerclamp: Remove set-but-not-used variables

2017-01-31 Thread Jacob Pan
On Mon, 30 Jan 2017 10:47:36 + Augusto Mecking Caringi wrote: > In poll_pkg_cstate() function, the variables jiffies_last and > jiffies_now are set but never used. > > This has been detected by building the driver with W=1: > > drivers/thermal/intel_powerclamp.c: In function ‘poll_pkg_cstat

[PATCH] thermal/intel_powerclamp: Remove set-but-not-used variables

2017-01-30 Thread Augusto Mecking Caringi
In poll_pkg_cstate() function, the variables jiffies_last and jiffies_now are set but never used. This has been detected by building the driver with W=1: drivers/thermal/intel_powerclamp.c: In function ‘poll_pkg_cstate’: drivers/thermal/intel_powerclamp.c:464:23: warning: variable ‘jiffies_last’