cpufreq: intel_pstate: Avoid redundant initialization of local vars
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Feb 2019 12:15:32 +0000 (13:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Feb 2019 10:34:32 +0000 (11:34 +0100)
commitfa93b51c55099660c2583ec918ef27df18fc511a
treeee13c938e8ca8fdbcb33bfffb39eb5901ee6b83e
parent6c8d750f9784cef32a8cffdad74c8a351b4ca3a6
cpufreq: intel_pstate: Avoid redundant initialization of local vars

After commit 1a4fe38add8b ("cpufreq: intel_pstate: Remove max/min
fractions to limit performance") the initial value of the pstate local
variable in intel_pstate_max_within_limits() and the initial value of
the max_pstate local variable in intel_pstate_prepare_request() are
both immediately discarded, so initialize both these variables to
their target values upfront.

No intentional changes of behavior.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c