]> err.no Git - linux-2.6/commitdiff
[ATM] firestream: Fix uninitialized var warning.
authorDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2008 23:19:26 +0000 (16:19 -0700)
committerDavid 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

index 47c57a4294b7c8beccb38ee7e4ed62fc388ad4fc..98099f526d82663343bf85bae33781616fe5e651 100644 (file)
@@ -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);