Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.it
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Dario Binacchi and committed by
Marc Kleine-Budde
c7b0f688 ee6bb641

-2
-1
drivers/net/can/c_can/c_can.c
··· 599 599 600 600 /* Clear all internal status */ 601 601 atomic_set(&priv->tx_active, 0); 602 - priv->rxmasked = 0; 603 602 priv->tx_dir = 0; 604 603 605 604 /* set bittiming params */
-1
drivers/net/can/c_can/c_can.h
··· 205 205 struct c_can_raminit raminit_sys; /* RAMINIT via syscon regmap */ 206 206 void (*raminit)(const struct c_can_priv *priv, bool enable); 207 207 u32 comm_rcv_high; 208 - u32 rxmasked; 209 208 u32 dlc[]; 210 209 }; 211 210