diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-10-20 21:01:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-24 17:47:49 -0400 |
commit | b61f674051e58b394454602d492d5e3e3471facc (patch) | |
tree | fbeb05e0f7a0d542d3dfa54d845adc3ea8e40a0c /drivers/net/can | |
parent | 759a6c768dcdbbb4d3f1fb965b674c15773e09ca (diff) |
can: at91_can: fix compiler warning in at91_irq_err_state
This patch fixes the following compiler warning:
drivers/net/can/at91_can.c: In function 'at91_irq_err_state':
drivers/net/can/at91_can.c:779: warning: 'reg_ier' may be used uninitialized in this function
drivers/net/can/at91_can.c:779: warning: 'reg_idr' may be used uninitialized in this function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/at91_can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 2c17e7437c47..1954ab003db7 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c | |||
@@ -764,7 +764,7 @@ static void at91_irq_err_state(struct net_device *dev, | |||
764 | struct can_frame *cf, enum can_state new_state) | 764 | struct can_frame *cf, enum can_state new_state) |
765 | { | 765 | { |
766 | struct at91_priv *priv = netdev_priv(dev); | 766 | struct at91_priv *priv = netdev_priv(dev); |
767 | u32 reg_idr, reg_ier, reg_ecr; | 767 | u32 reg_idr = 0, reg_ier = 0, reg_ecr; |
768 | u8 tec, rec; | 768 | u8 tec, rec; |
769 | 769 | ||
770 | reg_ecr = at91_read(priv, AT91_ECR); | 770 | reg_ecr = at91_read(priv, AT91_ECR); |