drivers/net/wan/pc300_tty.c:763: warning: `new' might be used uninitialized in this function
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) {