diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-07-26 10:09:33 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-08-13 17:37:04 +0300 |
commit | c71400cec4389461153798de845a2be0f3827c99 (patch) | |
tree | 26e2f7bf9391c20b8bc7190eeef8fa0f8c039ca6 | |
parent | dfa9352dbe4e0da468cba0412b83ddbba35cd788 (diff) | |
download | linux-c71400cec4389461153798de845a2be0f3827c99.tar.xz |
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>
-rw-r--r-- | drivers/net/can/ti_hecc.c | 3 |
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); |