浏览代码

[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 <davem@davemloft.net>
David S. Miller 17 年之前
父节点
当前提交
d41a95e04a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/atm/firestream.c

+ 1 - 0
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
 		/* Docs are vague about this atm_hdr field. By the way, the FS
 		 * chip makes odd errors if lower bits are set.... -- REW */
 		 * chip makes odd errors if lower bits are set.... -- REW */
 		tc->atm_hdr =  (vpi << 20) | (vci << 4); 
 		tc->atm_hdr =  (vpi << 20) | (vci << 4); 
+		tmc0 = 0;
 		{
 		{
 			int pcr = atm_pcr_goal (txtp);
 			int pcr = atm_pcr_goal (txtp);