diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-23 15:13:48 +0100 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@linaro.org> | 2025-08-13 12:59:36 +0300 |
commit | 29ea990a1c4a2455f432d5e71b217e93b406fc12 (patch) | |
tree | 009eedbb5871a0d4ad71bf9030ffc5e698217090 /drivers/usb/cdns3 | |
parent | 709b5be0a48d4e5bb95ef0b107c56045a8fe67c6 (diff) |
clk: at91: Fix testing of unsigned variable to be negative
The variable 'index' is declared as unsigned but used to receive the
return value of a function returning 'int'. This value is then tested
for being less than zero to detect an error condition but as index is
unsigned this can never be true. Change the variable 'index' to be an
int so that the error condition can be detected.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions