Andrew Goodbody 41fd18219f usb: musb-new: Cannot test unsigned member to be negative
You cannot test an unsigned member of a struct for being negative, the
test will always fail. Instead assign the return value of
fdtdec_get_int, which returns an int, to a temporary variable declared
as an int, so that it can be tested for being negative before being
assigned to the unsigned struct member.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
2025-10-28 16:35:05 +01:00
..
2025-09-30 11:55:23 +02:00
2025-04-03 16:54:49 -06:00
2025-09-30 11:53:10 +02:00
2024-10-17 03:12:47 +02:00
2025-10-28 16:33:15 +01:00