mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 17:44:14 +08:00
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>
This commit is contained in:
parent
dfa9352dbe
commit
c71400cec4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user