Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci fix uninitialized uses caught by gcc



details:   https://anonhg.NetBSD.org/src/rev/8930e4118466
branches:  trunk
changeset: 554464:8930e4118466
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Oct 28 17:01:19 2003 +0000

description:
fix uninitialized uses caught by gcc

diffstat:

 sys/dev/pci/ifpci.c  |  5 +++--
 sys/dev/pci/ifpci2.c |  7 ++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (62 lines):

diff -r dd465a17f4a3 -r 8930e4118466 sys/dev/pci/ifpci.c
--- a/sys/dev/pci/ifpci.c       Tue Oct 28 16:25:29 2003 +0000
+++ b/sys/dev/pci/ifpci.c       Tue Oct 28 17:01:19 2003 +0000
@@ -35,14 +35,14 @@
  *     Fritz!Card PCI driver
  *     ------------------------------------------------
  *
- *     $Id: ifpci.c,v 1.14 2003/10/03 16:38:44 pooka Exp $
+ *     $Id: ifpci.c,v 1.15 2003/10/28 17:01:19 pooka Exp $
  *
  *      last edit-date: [Fri Jan  5 11:38:58 2001]
  *
  *---------------------------------------------------------------------------*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ifpci.c,v 1.14 2003/10/03 16:38:44 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ifpci.c,v 1.15 2003/10/28 17:01:19 pooka Exp $");
 
 
 #include <sys/param.h>
@@ -1271,6 +1271,7 @@
        u_char scrbuf[HSCX_FIFO_LEN];
 
        len = 0;
+       cmd = 0;
 
        /*
         * fill the HSCX tx fifo with data from the current mbuf. if
diff -r dd465a17f4a3 -r 8930e4118466 sys/dev/pci/ifpci2.c
--- a/sys/dev/pci/ifpci2.c      Tue Oct 28 16:25:29 2003 +0000
+++ b/sys/dev/pci/ifpci2.c      Tue Oct 28 17:01:19 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ifpci2.c,v 1.2 2003/10/03 16:38:44 pooka Exp $     */
+/* $NetBSD: ifpci2.c,v 1.3 2003/10/28 17:01:19 pooka Exp $     */
 /*
  *   Copyright (c) 1999 Gary Jennejohn. All rights reserved.
  *
@@ -36,14 +36,14 @@
  *     Fritz!Card PCI driver
  *     ------------------------------------------------
  *
- *     $Id: ifpci2.c,v 1.2 2003/10/03 16:38:44 pooka Exp $
+ *     $Id: ifpci2.c,v 1.3 2003/10/28 17:01:19 pooka Exp $
  *
  *      last edit-date: [Fri Jan  5 11:38:58 2001]
  *
  *---------------------------------------------------------------------------*/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ifpci2.c,v 1.2 2003/10/03 16:38:44 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ifpci2.c,v 1.3 2003/10/28 17:01:19 pooka Exp $");
 
 
 #include <sys/param.h>
@@ -1260,6 +1260,7 @@
        u_char scrbuf[HSCX_FIFO_LEN];
 
        len = 0;
+       cmd = 0;
 
        /*
         * fill the HSCX tx fifo with data from the current mbuf. if



Home | Main Index | Thread Index | Old Index