Commit c7b0f688 authored by Dario Binacchi's avatar Dario Binacchi Committed by Marc Kleine-Budde

can: c_can: remove unused variable struct c_can_priv::rxmasked

The member rxmasked of struct c_can_priv is initialized by
c_can_chip_config(), but's it's never used, so remove it.

Link: https://lore.kernel.org/r/20210509124309.30024-2-dariobin@libero.itSigned-off-by: default avatarDario Binacchi <dariobin@libero.it>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent ee6bb641
...@@ -599,7 +599,6 @@ static int c_can_chip_config(struct net_device *dev) ...@@ -599,7 +599,6 @@ static int c_can_chip_config(struct net_device *dev)
/* Clear all internal status */ /* Clear all internal status */
atomic_set(&priv->tx_active, 0); atomic_set(&priv->tx_active, 0);
priv->rxmasked = 0;
priv->tx_dir = 0; priv->tx_dir = 0;
/* set bittiming params */ /* set bittiming params */
......
...@@ -205,7 +205,6 @@ struct c_can_priv { ...@@ -205,7 +205,6 @@ struct c_can_priv {
struct c_can_raminit raminit_sys; /* RAMINIT via syscon regmap */ struct c_can_raminit raminit_sys; /* RAMINIT via syscon regmap */
void (*raminit)(const struct c_can_priv *priv, bool enable); void (*raminit)(const struct c_can_priv *priv, bool enable);
u32 comm_rcv_high; u32 comm_rcv_high;
u32 rxmasked;
u32 dlc[]; u32 dlc[];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment