]> git.ipfire.org Git - thirdparty/linux.git/commit
cpuidle: remove dead code from cpuidle_enter_state()
authorDhruva Gole <d-gole@ti.com>
Wed, 21 Aug 2024 11:42:50 +0000 (17:12 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Aug 2024 19:03:52 +0000 (21:03 +0200)
commit6baacf9391c03f91a7644b3f94634b7d4b2c5e34
tree8fee2bab631559b36c02fdb8aaf405f4fcf81ed9
parentd5c667e049ee75e82f3233eda0d44e39e8d492cf
cpuidle: remove dead code from cpuidle_enter_state()

Checking for index < 0 is useless because the find_deepest_state()
function never really returns a negative value.

Since this hasn't been reported in over 9 years it's dead code, so
remove it.

Signed-off-by: Dhruva Gole <d-gole@ti.com>
Link: https://patch.msgid.link/20240821114250.1416421-1-d-gole@ti.com
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c