projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d166f56
)
can: flexcan: flexcan_poll_state(): no need to initialize new_state, rx_state, tx_state
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 18 Jan 2017 10:25:41 +0000
(11:25 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 6 Feb 2017 14:13:32 +0000
(15:13 +0100)
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>
drivers/net/can/flexcan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/flexcan.c
b/drivers/net/can/flexcan.c
index 84ebb3e5958daa473fe21660451761157fad2939..74715174802f8a04940c1505dffd8d3e3327ea59 100644
(file)
--- 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;