diff options
author | Douglas Anderson <[email protected]> | 2023-04-13 17:34:17 -0700 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-04-18 14:02:31 +0100 |
commit | 37473397b852f556d8b9428ccbfd51886037842d (patch) | |
tree | c9a200937ddc1e3925396fd461ac65d96c1d3028 /lib/mpi/mpi-mod.c | |
parent | 902f8c9830c35cc61a7b3f63003c7246b2bf06ca (diff) |
regulator: core: Make regulator_lock_two() logic easier to follow
The regulator_lock_two() function could be made clearer in the case of
lock contention by having a local variable for each of the held and
contended locks. Let's do that. At the same time, let's use the swap()
function instead of open coding it.
This change is expected to be a no-op and simply improves code
clarity.
Suggested-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/CAE-0n53Eb1BeDPmjBycXUaQAF4ppiAM6UDWje_jiB9GAmR8MMw@mail.gmail.com
Signed-off-by: Douglas Anderson <[email protected]>
Link: https://lore.kernel.org/r/20230413173359.1.I1ae92b25689bd6579952e6d458b79f5f8054a0c9@changeid
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions