From: Marc Kleine-Budde Date: Fri, 26 Jul 2019 07:09:33 +0000 (+0200) Subject: can: ti_hecc: ti_hecc_start(): avoid multiple assignments X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c71400cec4389461153798de845a2be0f3827c99;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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);