mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 18:35:27 +08:00
grcan.c: Fix Unused value (CID #1437613)
CID 1437613: Unused value in grcan_set_filter(). This fix was recommended by Daniel Hellstrom (daniel@gaisler.com). Closes #4301
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user