Skip to content
Commit 0b88bc92 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

clk: ti: Use int to check return value from of_property_count_elems_of_size()



This function can return a negative number when it fails, but res->sets
is at most a u16 which can't hold that negative number. Let's store the
result into an int, ret, and then assign that to res->sets when it works
to avoid this logical impossibility.

Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 0af69227
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment