leon, grcan: removed unused txerror, rxerror

This commit is contained in:
Martin Aberg
2017-04-13 14:12:31 +02:00
committed by Daniel Hellstrom
parent ee078c217d
commit 039edd2adc

View File

@@ -149,7 +149,6 @@ struct grcan_priv {
int txblock, rxblock;
int txcomplete, rxcomplete;
int txerror, rxerror;
struct grcan_filter sfilter;
struct grcan_filter afilter;
@@ -458,10 +457,6 @@ static rtems_device_driver grcan_hw_start(struct grcan_priv *pDev)
IRQ_UNMASK(pDev->irq + GRCAN_IRQ_IRQ);
SPIN_UNLOCK_IRQ(&pDev->devlock, oldLevel);
/* Reset some software data */
/*pDev->txerror = 0;
pDev->rxerror = 0; */
/* Enable receiver/transmitter */
pDev->regs->rx0ctrl = GRCAN_RXCTRL_ENABLE;
pDev->regs->tx0ctrl = GRCAN_TXCTRL_ENABLE;
@@ -1519,14 +1514,6 @@ int grcan_write(void *d, CANMsg *msg, size_t ucount)
return nwritten;
}
if ( pDev->txerror ){
/* Return number of bytes sent, compare write pointers */
pDev->txerror = 0;
#if 0
#error HANDLE AMBA error
#endif
}
/* Try read bytes from circular buffer */
nwritten = grcan_hw_write_try(
pDev,