Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2o Reorder, eliminating a bogus initializer.



details:   https://anonhg.NetBSD.org/src/rev/f2371cdd1d2f
branches:  trunk
changeset: 554510:f2371cdd1d2f
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Oct 29 02:13:09 2003 +0000

description:
Reorder, eliminating a bogus initializer.

diffstat:

 sys/dev/i2o/dpti.c |  13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diffs (42 lines):

diff -r 2a0b4bb6b144 -r f2371cdd1d2f sys/dev/i2o/dpti.c
--- a/sys/dev/i2o/dpti.c        Wed Oct 29 02:10:57 2003 +0000
+++ b/sys/dev/i2o/dpti.c        Wed Oct 29 02:13:09 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dpti.c,v 1.14 2003/10/25 18:36:35 christos Exp $       */
+/*     $NetBSD: dpti.c,v 1.15 2003/10/29 02:13:09 mycroft Exp $        */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.14 2003/10/25 18:36:35 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.15 2003/10/29 02:13:09 mycroft Exp $");
 
 #include "opt_i2o.h"
 
@@ -540,13 +540,7 @@
                }
 
                memset(bufs, 0, sizeof(bufs));
-               nbuf = 0; /* XXX: gcc */
-       } else
-               nbuf = -1;
 
-       rv = EINVAL;
-
-       if (sgoff != 0) {
                p = mbtmp + sgoff;
                pmax = mbtmp + (msgsize >> 2) - 2;
 
@@ -660,7 +654,8 @@
                            sc->sc_dv.dv_xname));
                        goto bad;
                }
-       }
+       } else
+               nbuf = -1;
 
        /*
         * Allocate a wrapper, and adjust the message header fields to



Home | Main Index | Thread Index | Old Index