cpuidle: teo: Combine candidate state index checks against 0
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jan 2025 18:39:00 +0000 (19:39 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jan 2025 16:16:30 +0000 (17:16 +0100)
commitea185406d1ed90493ef0868a03ddcb6b2701b11b
treea2cafafc2c213ef399a3203e1dae0f7df0f54c6e
parent92ce5c07b7a1913246fd5492aee52db8a0c66f55
cpuidle: teo: Combine candidate state index checks against 0

There are two candidate state index checks against 0 in teo_select()
that need not be separate, so combine them and update comments around
them.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
Tested-by: Aboorva Devarajan <aboorvad@linux.ibm.com>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/13676346.uLZWGnKmhe@rjwysocki.net
drivers/cpuidle/governors/teo.c