]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/wan/pc300_drv: fix bug caught by gcc warning
authorJeff Garzik <jeff@garzik.org>
Tue, 17 Jul 2007 05:32:29 +0000 (01:32 -0400)
committerJeff Garzik <jeff@garzik.org>
Tue, 17 Jul 2007 20:18:00 +0000 (16:18 -0400)
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>
drivers/net/wan/pc300_drv.c

index ec1c556a47caf65c69b81504f7a1207e7e52f013..5d8c78ee2cd9648e186f0efbdd4d1065b2715ef8 100644 (file)
@@ -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);