Commit 24287f90 authored by Thorsten Blum's avatar Thorsten Blum Committed by Viresh Kumar
Browse files

rust: cpufreq: streamline find_supply_names



Remove local variables from find_supply_names() and use .and_then() with
the more concise kernel::kvec![] macro, instead of KVec::with_capacity()
followed by .push() and Some().

No functional changes intended.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent ebc4ed14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment