intel_pstate: Simplify conditional in intel_pstate_set_policy()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2016 22:46:45 +0000 (00:46 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 May 2016 00:26:33 +0000 (02:26 +0200)
commitc749c64f45fa07d20e11af2e3f3caa9d7650d341
tree30f717d86c06418d3f381329e21ecdd0d0f03e2d
parent1aa7a6e2b8105f22a5f7d6def281f776459c95ba
intel_pstate: Simplify conditional in intel_pstate_set_policy()

One of the if () statements in intel_pstate_set_policy() causes
another if () to be evaluated if the condition is true and it
doesn't do anything else, so merge the two if () statements into
one.

No functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/cpufreq/intel_pstate.c