2004-09-03 15:25:14

by John Cherry

[permalink] [raw]
Subject: IA32 (2.6.9-rc1 - 2004-09-02.21.30) - 1 New warnings (gcc 3.2.2)

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


2004-09-03 15:50:18

by Dave Jones

[permalink] [raw]
Subject: Fix warning in pc300_tty driver.

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 <[email protected]>

--- 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) {