drivers/can/mcp2515.c: Eliminate some warnings found in build testing.
This commit is contained in:
parent
ee5298e046
commit
149e50798a
|
@ -1343,7 +1343,6 @@ static void mcp2515_rxint(FAR struct can_dev_s *dev, bool enable)
|
||||||
FAR struct mcp2515_can_s *priv;
|
FAR struct mcp2515_can_s *priv;
|
||||||
FAR struct mcp2515_config_s *config;
|
FAR struct mcp2515_config_s *config;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint8_t regval;
|
|
||||||
|
|
||||||
DEBUGASSERT(dev);
|
DEBUGASSERT(dev);
|
||||||
priv = dev->cd_priv;
|
priv = dev->cd_priv;
|
||||||
|
@ -1390,7 +1389,6 @@ static void mcp2515_txint(FAR struct can_dev_s *dev, bool enable)
|
||||||
{
|
{
|
||||||
FAR struct mcp2515_can_s *priv = dev->cd_priv;
|
FAR struct mcp2515_can_s *priv = dev->cd_priv;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint8_t regval;
|
|
||||||
|
|
||||||
DEBUGASSERT(priv && priv->config);
|
DEBUGASSERT(priv && priv->config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue