intel_idle: clean up the (new) state_update_enter_method function
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 5 Jun 2023 15:47:14 +0000 (15:47 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jun 2023 18:07:22 +0000 (20:07 +0200)
commit7826c069c8765969cfb7a364f8e0e663fc132b10
treed9d7ed4941f4e6f0f3799815e95356db9bb46ff1
parent4622ba923e55e12cb76081c8865b01fcb383a9d8
intel_idle: clean up the (new) state_update_enter_method function

Now that the logic for state_update_enter_method() is in its own
function, the long if .. else if .. else if .. else if chain
can be simplified by just returning from the function
at the various places. This does not change functionality,
but it makes the logic much simpler to read or modify later.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c