mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
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:
1 parent
117e2e083b
commit
ef52cb5fbc
1 file changed
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user