[PATCH] bsps/shared/grlib/1553/b1553brm.c : addressed logic issue and unsigned_compare

suyash singh suyashsingh234 at gmail.com
Fri Feb 28 17:11:58 UTC 2020


---
 bsps/shared/grlib/1553/b1553brm.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/bsps/shared/grlib/1553/b1553brm.c b/bsps/shared/grlib/1553/b1553brm.c
index 57ef70126b..4041423541 100644
--- a/bsps/shared/grlib/1553/b1553brm.c
+++ b/bsps/shared/grlib/1553/b1553brm.c
@@ -982,10 +982,8 @@ static rtems_device_driver brm_write(rtems_device_major_number major, rtems_devi
 
 	rw_args->bytes_moved = count; 
 
-	if (count >= 0) {
-		return RTEMS_SUCCESSFUL;
-	}
-	return RTEMS_UNSATISFIED;
+	return RTEMS_SUCCESSFUL;
+
 }
 
 static rtems_device_driver brm_control(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
-- 
2.17.1



More information about the devel mailing list