public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: Fix warning in pc300_tty driver.
Date: Fri, 3 Sep 2004 16:49:43 +0100	[thread overview]
Message-ID: <20040903154943.GA23274@redhat.com> (raw)
In-Reply-To: <200409031518.i83FIqXK003470@cherrypit.pdx.osdl.net>

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

      reply	other threads:[~2004-09-03 15:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040903154943.GA23274@redhat.com \
    --to=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox