Skip to content

Commit

Permalink
[review] drivers: scmi-msg: fix clock rates description remaining count
Browse files Browse the repository at this point in the history
Simplify computation of the number of rates remaining after current
enumeration.

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Aug 21, 2024
1 parent 6640740 commit 3d4cc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/drivers/scmi-msg/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static void scmi_clock_describe_rates(struct scmi_msg *msg)
}

out_count = rate_index - in_args->rate_index;
remaining = nb_rates - in_args->rate_index - out_count;
remaining = nb_rates - rate_index;
p2a.num_rates_flags = SCMI_RATES_BY_ARRAY(out_count, remaining);
} else if (status == SCMI_NOT_SUPPORTED) {
unsigned long triplet[3] = { 0, 0, 0 };
Expand Down

0 comments on commit 3d4cc43

Please sign in to comment.