[rtems commit] grcan.c: Fix Unused value (CID #1437613)

Joel Sherrill joel at rtems.org
Fri Mar 5 20:19:38 UTC 2021


Module:    rtems
Branch:    master
Commit:    f762b7c2725374bee975f0c031e467fd92412566
Changeset: http://git.rtems.org/rtems/commit/?id=f762b7c2725374bee975f0c031e467fd92412566

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Thu Mar  4 14:00:25 2021 -0500

grcan.c: Fix Unused value (CID #1437613)

CID 1437613: Unused value in grcan_set_filter().
This fix was recommended by Daniel Hellstrom (daniel at gaisler.com).

Closes #4301

---

 bsps/shared/grlib/can/grcan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/shared/grlib/can/grcan.c b/bsps/shared/grlib/can/grcan.c
index d69d99d..a446d04 100644
--- a/bsps/shared/grlib/can/grcan.c
+++ b/bsps/shared/grlib/can/grcan.c
@@ -1787,7 +1787,7 @@ int grcan_set_sfilter(void *d, const struct grcan_filter *filter)
 	if ( !filter ){
 		/* disable TX/RX SYNC filtering */
 		pDev->sfilter.mask = 0xffffffff;
-		pDev->sfilter.mask = 0;
+		pDev->sfilter.code = 0;
 
 		 /* disable Sync interrupt */
 		SPIN_LOCK_IRQ(&pDev->devlock, oldLevel);



More information about the vc mailing list