summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/pc300_drv.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-07-17 07:32:29 +0200
committerJeff Garzik <jeff@garzik.org>2007-07-17 22:18:00 +0200
commit79c63e1976df035dee587c016d79cbccb130494a (patch)
tree469e27493634160813ce0f39341c55d71524b2d1 /drivers/net/wan/pc300_drv.c
parentdrivers/usb/misc/auerswald: fix status check, remove redundant check (diff)
downloadlinux-79c63e1976df035dee587c016d79cbccb130494a.tar.xz
linux-79c63e1976df035dee587c016d79cbccb130494a.zip
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/pc300_drv.c')
-rw-r--r--drivers/net/wan/pc300_drv.c2
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)
int br, tc;
int br_pwr, error;
+ *br_io = 0;
+
if (rate == 0)
return (0);