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>
This commit is contained in:
Jeff Garzik 2007-07-17 01:32:29 -04:00
parent ae97fec370
commit 79c63e1976
1 changed files with 2 additions and 0 deletions

View File

@ -2833,6 +2833,8 @@ static int clock_rate_calc(uclong rate, uclong clock, int *br_io)
int br, tc; int br, tc;
int br_pwr, error; int br_pwr, error;
*br_io = 0;
if (rate == 0) if (rate == 0)
return (0); return (0);