cpukit/dev/can: Resolve sign comparison warning

Make the constant unsigned so that signedness on both sides of the
comparison matches.
This commit is contained in:
Kinsey Moore authored and Gedare Bloom committed 2026-02-09 17:23:00 +00:00
1 parent 117e2e083b
commit ef52cb5fbc
1 file changed
+1 -1
+1 -1
View File
@@ -240,7 +240,7 @@ static int ctucanfd_check_state(
}
}
if ( txb_found != ( 1 << internal->ntxbufs ) - 1 ) {
if ( txb_found != ( 1U << internal->ntxbufs ) - 1 ) {
printk(
"CTUCANFD CHECK at %s: missing buffers in txb_order = 0x%08x, "
"txb_found = 0x%02x ntxbufs %d, tail %d\n",