summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/clock
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2019-06-24 18:06:15 -0700
committerStephen Boyd <sboyd@kernel.org>2019-06-24 18:11:41 -0700
commit0b88bc9292515550b4f7b30ac7d7ecd80f5bc1aa (patch)
treec1ff4ae81bedbd4c7a151639f30114b943b057f4 /Documentation/devicetree/bindings/clock
parent0af69227ed9fc4ac62f8542e52aba98fc2c7945b (diff)
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: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/clock')
0 files changed, 0 insertions, 0 deletions