Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Correct return value of ne_*_match().



details:   https://anonhg.NetBSD.org/src/rev/2114159a5969
branches:  trunk
changeset: 749371:2114159a5969
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Nov 28 03:10:09 2009 +0000

description:
Correct return value of ne_*_match().
It's attach priority, not ne2000 model.

diffstat:

 sys/arch/x68k/dev/if_ne_intio.c   |  6 +++---
 sys/arch/x68k/dev/if_ne_neptune.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r da2380c5775d -r 2114159a5969 sys/arch/x68k/dev/if_ne_intio.c
--- a/sys/arch/x68k/dev/if_ne_intio.c   Sat Nov 28 02:58:21 2009 +0000
+++ b/sys/arch/x68k/dev/if_ne_intio.c   Sat Nov 28 03:10:09 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ne_intio.c,v 1.13 2009/01/18 04:48:53 isaki Exp $   */
+/*     $NetBSD: if_ne_intio.c,v 1.14 2009/11/28 03:10:09 isaki Exp $   */
 
 /*
  * Copyright (c) 2001 Tetsuya Isaki. All rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ne_intio.c,v 1.13 2009/01/18 04:48:53 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ne_intio.c,v 1.14 2009/11/28 03:10:09 isaki Exp $");
 
 #include "opt_inet.h"
 #include "opt_ns.h"
@@ -136,7 +136,7 @@
 
  out:
        bus_space_unmap(iot, ioh, NE2000_NPORTS);
-       return rv;
+       return (rv != 0) ? 1 : 0;
 }
 
 static void
diff -r da2380c5775d -r 2114159a5969 sys/arch/x68k/dev/if_ne_neptune.c
--- a/sys/arch/x68k/dev/if_ne_neptune.c Sat Nov 28 02:58:21 2009 +0000
+++ b/sys/arch/x68k/dev/if_ne_neptune.c Sat Nov 28 03:10:09 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ne_neptune.c,v 1.17 2009/01/18 04:48:53 isaki Exp $ */
+/*     $NetBSD: if_ne_neptune.c,v 1.18 2009/11/28 03:10:09 isaki Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ne_neptune.c,v 1.17 2009/01/18 04:48:53 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ne_neptune.c,v 1.18 2009/11/28 03:10:09 isaki Exp $");
 
 #include "opt_inet.h"
 #include "opt_ns.h"
@@ -122,7 +122,7 @@
 
  out:
        bus_space_unmap(nict, nich, NE2000_NPORTS);
-       return (rv);
+       return (rv != 0) ? 1 : 0;
 }
 
 void



Home | Main Index | Thread Index | Old Index