Commit 3d2398f4 authored by Viresh Kumar's avatar Viresh Kumar
Browse files

OPP: Move break out of scoped_guard in dev_pm_opp_xlate_required_opp()



The commit ff9c5120 ("OPP: Use mutex locking guards")
unintentionally made the for loop run longer than required.

scoped_guard() is implemented as a for loop. The break statement now
breaks out out the scoped_guard() and not out of the outer for loop.
The outer loop always iterates to completion.

Fix it.

Fixes: ff9c5120 ("OPP: Use mutex locking guards")
Reported-by: default avatarDavid Lechner <dlechner@baylibre.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent e560083c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2742,8 +2742,8 @@ struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table,
					break;
				}
			}
			break;
		}
		break;
	}

	if (IS_ERR(dest_opp)) {