From fb7866bdc89a0b3705aff2c1f2d649b9cedbe82b Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Tue, 23 May 2017 19:30:12 -0300 Subject: [PATCH] Use the right variable name at mcp2515_txready() --- drivers/can/mcp2515.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/can/mcp2515.c b/drivers/can/mcp2515.c index 8fe6e35364..b1506bfa40 100644 --- a/drivers/can/mcp2515.c +++ b/drivers/can/mcp2515.c @@ -1823,7 +1823,7 @@ static bool mcp2515_txready(FAR struct can_dev_s *dev) { FAR struct mcp2515_can_s *priv; uint8_t regval; - bool empty; + bool ready; DEBUGASSERT(dev); priv = dev->cd_priv; @@ -1845,32 +1845,32 @@ static bool mcp2515_txready(FAR struct can_dev_s *dev) mcp2515_readregs(priv, MCP2515_TXB0CTRL, ®val, 1); if ((regval & TXBCTRL_TXREQ) == 0) { - empty = true; + ready = true; } else { mcp2515_readregs(priv, MCP2515_TXB1CTRL, ®val, 1); if ((regval & TXBCTRL_TXREQ) == 0) { - empty = true; + ready = true; } else { mcp2515_readregs(priv, MCP2515_TXB2CTRL, ®val, 1); if ((regval & TXBCTRL_TXREQ) == 0) { - empty = true; + ready = true; } else { - empty = false; + ready = false; } } } mcp2515_dev_unlock(priv); - return empty; + return ready; } /****************************************************************************