Messages in this thread Patch in this message | | | Date | Fri, 3 Sep 2004 16:49:43 +0100 | From | Dave Jones <> | 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 <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/
| |