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:
parent
ae97fec370
commit
79c63e1976
1 changed files with 2 additions and 0 deletions
|
@ -2833,6 +2833,8 @@ static int clock_rate_calc(uclong rate, uclong clock, int *br_io)
|
|||
int br, tc;
|
||||
int br_pwr, error;
|
||||
|
||||
*br_io = 0;
|
||||
|
||||
if (rate == 0)
|
||||
return (0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue