OSDN Git Service

cpuidle: teo: Get rid of redundant check in teo_update()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2019 10:11:08 +0000 (12:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 10 Aug 2019 12:34:28 +0000 (14:34 +0200)
commitb7e7fffd3e8c81aa0654ed4c9f7a142b4c4dab1a
tree359584da2ba92f2512edd87d28384180be421d86
parentcab09f3d2d2a0a6cb3dfb678660d67a2c3764f50
cpuidle: teo: Get rid of redundant check in teo_update()

Notice that setting measured_us to UINT_MAX in teo_update() earlier
doesn't change the behavior of the following code, so do that and
eliminate a redundant check used for setting measured_us to UINT_MAX.

This change is not expected to alter functionality.

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