summaryrefslogtreecommitdiff
path: root/include/debug_uart.h
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-09-30 16:52:24 +0100
committerMarek Vasut <[email protected]>2025-10-28 16:35:05 +0100
commit41fd18219fb6625171180a21d0e4f17e9b7b5aa2 (patch)
tree851d8e7fe4d5887427f68d66fa742f3e3850bc6f /include/debug_uart.h
parentd5de67c57e795325a67ec4ca6486654b72ade038 (diff)
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 <[email protected]>
Diffstat (limited to 'include/debug_uart.h')
0 files changed, 0 insertions, 0 deletions