All of lore.kernel.org
 help / color / mirror / Atom feed
* IA32 (2.6.9-rc1 - 2004-09-02.21.30) - 1 New warnings (gcc 3.2.2)
@ 2004-09-03 15:18 John Cherry
  2004-09-03 15:49 ` Fix warning in pc300_tty driver Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: John Cherry @ 2004-09-03 15:18 UTC (permalink / raw)
  To: linux-kernel

drivers/net/wan/pc300_tty.c:763: warning: `new' might be used uninitialized in this function

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

* Fix warning in pc300_tty driver.
  2004-09-03 15:18 IA32 (2.6.9-rc1 - 2004-09-02.21.30) - 1 New warnings (gcc 3.2.2) John Cherry
@ 2004-09-03 15:49 ` Dave Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Jones @ 2004-09-03 15:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

On Fri, Sep 03, 2004 at 08:18:52AM -0700, John Cherry wrote:
 > drivers/net/wan/pc300_tty.c:763: warning: `new' might be used uninitialized in this function

Caused by my last patch to this file.

		Dave

Signed-off-by: Dave Jones <davej@redhat.com>

--- 1/drivers/net/wan/pc300_tty.c~	2004-09-03 16:44:30.321952576 +0100
+++ 2/drivers/net/wan/pc300_tty.c	2004-09-03 16:47:36.585636192 +0100
@@ -760,7 +760,7 @@
 	int rx_len, rx_aux; 
 	volatile unsigned char status; 
 	unsigned short first_bd = pc300chan->rx_first_bd;
-	st_cpc_rx_buf	*new;
+	st_cpc_rx_buf	*new=NULL;
 	unsigned char dsr_rx;
 
 	if (pc300dev->cpc_tty == NULL) { 

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

end of thread, other threads:[~2004-09-03 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03 15:18 IA32 (2.6.9-rc1 - 2004-09-02.21.30) - 1 New warnings (gcc 3.2.2) John Cherry
2004-09-03 15:49 ` Fix warning in pc300_tty driver Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.