netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/4] drivers/atm/firestream.c: suppress uninitialized var warning
@ 2008-03-28 21:37 akpm
  2008-03-28 23:20 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: akpm @ 2008-03-28 21:37 UTC (permalink / raw)
  To: davem; +Cc: netdev, akpm, chas, jeff

From: Andrew Morton <akpm@linux-foundation.org>

drivers/atm/firestream.c: In function 'fs_open':
drivers/atm/firestream.c:870: warning: 'tmc0' may be used uninitialized in this function

I have confirmed that this is a false positive.

Cc: David S. Miller <davem@davemloft.net>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: chas williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/atm/firestream.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/atm/firestream.c~drivers-atm-firestreamc-suppress-uninitialized-var-warning drivers/atm/firestream.c
--- a/drivers/atm/firestream.c~drivers-atm-firestreamc-suppress-uninitialized-var-warning
+++ a/drivers/atm/firestream.c
@@ -867,7 +867,7 @@ static int fs_open(struct atm_vcc *atm_v
 	int error;
 	int bfp;
 	int to;
-	unsigned short tmc0;
+	unsigned short uninitialized_var(tmc0);
 	short vpi = atm_vcc->vpi;
 	int vci = atm_vcc->vci;
 
_

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-31 15:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 21:37 [patch 1/4] drivers/atm/firestream.c: suppress uninitialized var warning akpm
2008-03-28 23:20 ` David Miller
2008-03-28 23:54   ` Andrew Morton
2008-03-28 23:58     ` David Miller
2008-03-29  0:11       ` Andrew Morton
2008-03-29  0:35         ` David Miller
2008-03-29  0:39           ` Andrew Morton
2008-03-31 15:57             ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).