projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae97fec
)
drivers/net/wan/pc300_drv: fix bug caught by gcc warning
author
Jeff Garzik
<jeff@garzik.org>
Tue, 17 Jul 2007 05:32:29 +0000
(
01:32
-0400)
committer
Jeff 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
patch
|
blob
|
history
diff --git
a/drivers/net/wan/pc300_drv.c
b/drivers/net/wan/pc300_drv.c
index ec1c556a47caf65c69b81504f7a1207e7e52f013..5d8c78ee2cd9648e186f0efbdd4d1065b2715ef8 100644
(file)
--- 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);