Commit 238443df authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: flexcan: flexcan_poll_state(): no need to initialize new_state, rx_state, tx_state

This patch removed the not needed initialisation from the new_state,
rx_state, tx_state variabled.
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent d166f56b
...@@ -591,7 +591,7 @@ static int flexcan_poll_state(struct net_device *dev, u32 reg_esr) ...@@ -591,7 +591,7 @@ static int flexcan_poll_state(struct net_device *dev, u32 reg_esr)
struct flexcan_priv *priv = netdev_priv(dev); struct flexcan_priv *priv = netdev_priv(dev);
struct sk_buff *skb; struct sk_buff *skb;
struct can_frame *cf; struct can_frame *cf;
enum can_state new_state = 0, rx_state = 0, tx_state = 0; enum can_state new_state, rx_state, tx_state;
int flt; int flt;
struct can_berr_counter bec; struct can_berr_counter bec;
......
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