aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2023-03-27 15:52:28 -0500
committerGeert Uytterhoeven <[email protected]>2023-03-30 16:02:42 +0200
commit6050cb1c7ad40b5673cd6ee7cfd36db3ca9be5fe (patch)
treed8f2981cc78b27ab7284a8f36501ec3702d64319 /lib/crypto/mpi/mpiutil.c
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
ARM: sh-mobile: Use of_cpu_node_to_id() to read CPU node 'reg'
Replace open coded CPU nodes reading of "reg" and translation to logical ID with of_cpu_node_to_id(). The original code called of_parse_phandle() CONFIG_NR_CPUS times regardless of the length of 'cpus'. Optimize the loop to bail out once of_parse_phandle() fails as the end of 'cpus' property has been reached. Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions