diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-01-18 11:25:41 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-02-06 15:13:32 +0100 |
commit | 238443df8154696018fd01c1a7c8fb352b9ee49e (patch) | |
tree | 7295c43a8eb5901c6486d9eae01651d7d135d83a /drivers/net/can | |
parent | d166f56bf58b64027679905a01001df9ac0764bd (diff) | |
download | op-kernel-dev-238443df8154696018fd01c1a7c8fb352b9ee49e.zip op-kernel-dev-238443df8154696018fd01c1a7c8fb352b9ee49e.tar.gz |
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: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/flexcan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 84ebb3e..7471517 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -591,7 +591,7 @@ static int flexcan_poll_state(struct net_device *dev, u32 reg_esr) struct flexcan_priv *priv = netdev_priv(dev); struct sk_buff *skb; 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; struct can_berr_counter bec; |