aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_parman.c
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 /lib/test_parman.c
parentMerge tag 'keystone-clk-for-5.3-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/kristo/linux into clk-ti (diff)
downloadlinux-dev-0b88bc9292515550b4f7b30ac7d7ecd80f5bc1aa.tar.xz
linux-dev-0b88bc9292515550b4f7b30ac7d7ecd80f5bc1aa.zip
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 'lib/test_parman.c')
0 files changed, 0 insertions, 0 deletions