can: ti_hecc: ti_hecc_start(): avoid multiple assignments
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 26 Jul 2019 07:09:33 +0000 (09:09 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Aug 2019 14:37:04 +0000 (16:37 +0200)
This patch changes the multiple assignments of HECC_TX_MASK in
ti_hecc_start() into two single ones.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c

index 652970b1a660750d5a99ea27a86f7f3ddea5cfe0..cae1e603ae51d336988793ff0fa0a39fef1993f5 100644 (file)
@@ -364,7 +364,8 @@ static void ti_hecc_start(struct net_device *ndev)
        /* put HECC in initialization mode and set btc */
        ti_hecc_reset(ndev);
 
-       priv->tx_head = priv->tx_tail = HECC_TX_MASK;
+       priv->tx_head = HECC_TX_MASK;
+       priv->tx_tail = HECC_TX_MASK;
 
        /* Enable local and global acceptance mask registers */
        hecc_write(priv, HECC_CANGAM, HECC_SET_REG);