summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/ti_hecc.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2019-07-26 09:09:33 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-08-13 16:37:04 +0200
commitc71400cec4389461153798de845a2be0f3827c99 (patch)
tree26e2f7bf9391c20b8bc7190eeef8fa0f8c039ca6 /drivers/net/can/ti_hecc.c
parentcan: ti_hecc: fix print formating strings (diff)
downloadlinux-c71400cec4389461153798de845a2be0f3827c99.tar.xz
linux-c71400cec4389461153798de845a2be0f3827c99.zip
can: ti_hecc: ti_hecc_start(): avoid multiple assignments
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>
Diffstat (limited to 'drivers/net/can/ti_hecc.c')
-rw-r--r--drivers/net/can/ti_hecc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c
index 652970b1a660..cae1e603ae51 100644
--- a/drivers/net/can/ti_hecc.c
+++ b/drivers/net/can/ti_hecc.c
@@ -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);