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:
d5fb296
)
[ATM] firestream: Fix uninitialized var warning.
author
David S. Miller
<davem@davemloft.net>
Fri, 28 Mar 2008 23:19:26 +0000
(16:19 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 28 Mar 2008 23:19:26 +0000
(16:19 -0700)
All code paths set tmc0 in some way, but GCC can't
see that for some reason. Explicitly initialize
to zero.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/firestream.c
patch
|
blob
|
history
diff --git
a/drivers/atm/firestream.c
b/drivers/atm/firestream.c
index 47c57a4294b7c8beccb38ee7e4ed62fc388ad4fc..98099f526d82663343bf85bae33781616fe5e651 100644
(file)
--- a/
drivers/atm/firestream.c
+++ b/
drivers/atm/firestream.c
@@
-978,6
+978,7
@@
static int fs_open(struct atm_vcc *atm_vcc)
/* Docs are vague about this atm_hdr field. By the way, the FS
* chip makes odd errors if lower bits are set.... -- REW */
tc->atm_hdr = (vpi << 20) | (vci << 4);
+ tmc0 = 0;
{
int pcr = atm_pcr_goal (txtp);