Opened on 03/04/21 at 15:08:42
Closed on 03/05/21 at 20:20:26
#4295 closed defect (fixed)
b1553brm.c: Unsigned compared against 0 error spotted by Coverity
Reported by: | Ryan Long | Owned by: | Ryan Long <ryan.long@…> |
---|---|---|---|
Priority: | normal | Milestone: | 6.1 |
Component: | bsps | Version: | 6 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
CID 1399773: Unsigned compared against 0 in brm_write().
983 rw_args->bytes_moved = count; 984 CID 1399773 (#1 of 1): Unsigned compared against 0 (NO_EFFECT)unsigned_compare: This greater-than-or-equal-to-zero comparison of an unsigned value is always true. count >= 0U. 985 if (count >= 0) { 986 return RTEMS_SUCCESSFUL; 987 }
Change History (1)
comment:1 Changed on 03/05/21 at 20:20:26 by Ryan Long <ryan.long@…>
Owner: | set to Ryan Long <ryan.long@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In c57079a/rtems: