summaryrefslogtreecommitdiff
path: root/scripts/dtc/pylibfdt/setup.py
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-07-24 11:48:12 +0100
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2025-08-06 16:52:27 +0200
commit4ef864f1ae332fc1ae2a8d58ac0325db677abe52 (patch)
treee7ed784320cd6c9204b2c775a08af95080cb3157 /scripts/dtc/pylibfdt/setup.py
parent007610da2cca405ea7739fc120d90085be4b6ac2 (diff)
clk: renesas: Do not test unsigned variable to be less than 0
In rcar_clk_set_rate64_div_table the unsigned variable 'value' is used to receive the return value from rcar_clk_get_table_val which returns an int and then attempts to test for being less than 0, which can never be true. Instead declare value as an int so the code can behave as expected. Also remove initial values from 'value' and 'div' as they are not needed. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'scripts/dtc/pylibfdt/setup.py')
0 files changed, 0 insertions, 0 deletions