From: David S. Miller Date: Fri, 28 Mar 2008 23:19:26 +0000 (-0700) Subject: [ATM] firestream: Fix uninitialized var warning. X-Git-Tag: v2.6.25-rc9~99^2~26 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=d41a95e04ae80b77ddc186d0d97e6b439684adb8;p=~emulex%2Finfiniband.git [ATM] firestream: Fix uninitialized var warning. 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 --- diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c index 47c57a4294b..98099f526d8 100644 --- 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);