Skip to content

Commit 0f28982

Browse files
krzkpH5
authored andcommitted
cpufreq: do not open-code of_phandle_args_equal()
Use newly added of_phandle_args_equal() helper to compare two of_phandle_args. Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Philipp Zabel <[email protected]>
1 parent 26ea851 commit 0f28982

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/cpufreq.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,8 +1149,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_
11491149
if (ret < 0)
11501150
continue;
11511151

1152-
if (pargs->np == args.np && pargs->args_count == args.args_count &&
1153-
!memcmp(pargs->args, args.args, sizeof(args.args[0]) * args.args_count))
1152+
if (of_phandle_args_equal(pargs, &args))
11541153
cpumask_set_cpu(cpu, cpumask);
11551154

11561155
of_node_put(args.np);

0 commit comments

Comments
 (0)