lkml.org 
[lkml]   [2004]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectFix 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 <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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.030 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site