diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-07-17 01:32:29 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-17 16:18:00 -0400 |
commit | 79c63e1976df035dee587c016d79cbccb130494a (patch) | |
tree | 469e27493634160813ce0f39341c55d71524b2d1 /drivers/net/wan | |
parent | ae97fec3701a559929c3529e35417fab133a4d39 (diff) |
drivers/net/wan/pc300_drv: fix bug caught by gcc warning
The warning
drivers/net/wan/pc300_drv.c: In function ‘cpc_open’:
drivers/net/wan/pc300_drv.c:2942: warning: ‘br’ may be used
uninitialized in this function
was valid. Ensure 'br' is initialized in all cases.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/pc300_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c index ec1c556a47ca..5d8c78ee2cd9 100644 --- a/drivers/net/wan/pc300_drv.c +++ b/drivers/net/wan/pc300_drv.c | |||
@@ -2833,6 +2833,8 @@ static int clock_rate_calc(uclong rate, uclong clock, int *br_io) | |||
2833 | int br, tc; | 2833 | int br, tc; |
2834 | int br_pwr, error; | 2834 | int br_pwr, error; |
2835 | 2835 | ||
2836 | *br_io = 0; | ||
2837 | |||
2836 | if (rate == 0) | 2838 | if (rate == 0) |
2837 | return (0); | 2839 | return (0); |
2838 | 2840 | ||