[rtems commit] b1553brm.c: Fix Unsigned compared against 0 (CID #1399773)
Joel Sherrill
joel at rtems.org
Fri Mar 5 20:19:38 UTC 2021
Module: rtems
Branch: master
Commit: c57079a8149d779d487febbf9aa34037faa35fd0
Changeset: http://git.rtems.org/rtems/commit/?id=c57079a8149d779d487febbf9aa34037faa35fd0
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Wed Mar 3 16:07:37 2021 -0500
b1553brm.c: Fix Unsigned compared against 0 (CID #1399773)
CID 1399773: Unsigned compared against 0 in brm_write().
Closes #4295
---
bsps/shared/grlib/1553/b1553brm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bsps/shared/grlib/1553/b1553brm.c b/bsps/shared/grlib/1553/b1553brm.c
index 694f585..484ee6d 100644
--- a/bsps/shared/grlib/1553/b1553brm.c
+++ b/bsps/shared/grlib/1553/b1553brm.c
@@ -982,7 +982,7 @@ static rtems_device_driver brm_write(rtems_device_major_number major, rtems_devi
rw_args->bytes_moved = count;
- if (count >= 0) {
+ if (count > 0) {
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
More information about the vc
mailing list