Source-Changes-HG archive

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

[src/trunk]: src/sys In xxx_mediachange(), if there is no callback to the fro...



details:   https://anonhg.NetBSD.org/src/rev/4223135a23fe
branches:  trunk
changeset: 473948:4223135a23fe
user:      abs <abs%NetBSD.org@localhost>
date:      Wed Jun 23 04:17:10 1999 +0000

description:
In xxx_mediachange(), if there is no callback to the front-end, just
return 0 instead of EINVAL.  In this case, there will only be one media
type, and the upper-level if_media code will ensure that the user is
setting to that type.
This matches changes Jason made a while back to sys/dev/ic/lance.c

diffstat:

 sys/arch/next68k/dev/mb8795.c |  4 ++--
 sys/dev/ic/dp8390.c           |  4 ++--
 sys/dev/ic/i82586.c           |  4 ++--
 sys/dev/ic/mb86960.c          |  4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r fde0b4861f61 -r 4223135a23fe sys/arch/next68k/dev/mb8795.c
--- a/sys/arch/next68k/dev/mb8795.c     Wed Jun 23 03:27:34 1999 +0000
+++ b/sys/arch/next68k/dev/mb8795.c     Wed Jun 23 04:17:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mb8795.c,v 1.11 1999/05/18 23:52:53 thorpej Exp $      */
+/*     $NetBSD: mb8795.c,v 1.12 1999/06/23 04:17:11 abs Exp $  */
 /*
  * Copyright (c) 1998 Darrin B. Jewell
  * All rights reserved.
@@ -1079,7 +1079,7 @@
 
        if (sc->sc_mediachange)
                return ((*sc->sc_mediachange)(sc));
-       return (EINVAL);
+       return (0);
 }
 
 void
diff -r fde0b4861f61 -r 4223135a23fe sys/dev/ic/dp8390.c
--- a/sys/dev/ic/dp8390.c       Wed Jun 23 03:27:34 1999 +0000
+++ b/sys/dev/ic/dp8390.c       Wed Jun 23 04:17:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dp8390.c,v 1.24 1999/05/18 23:52:55 thorpej Exp $      */
+/*     $NetBSD: dp8390.c,v 1.25 1999/06/23 04:17:10 abs Exp $  */
 
 /*
  * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@@ -169,7 +169,7 @@
 
        if (sc->sc_mediachange)
                return ((*sc->sc_mediachange)(sc));
-       return (EINVAL);
+       return (0);
 }
 
 /*
diff -r fde0b4861f61 -r 4223135a23fe sys/dev/ic/i82586.c
--- a/sys/dev/ic/i82586.c       Wed Jun 23 03:27:34 1999 +0000
+++ b/sys/dev/ic/i82586.c       Wed Jun 23 04:17:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82586.c,v 1.22 1999/05/21 13:08:50 pk Exp $   */
+/*     $NetBSD: i82586.c,v 1.23 1999/06/23 04:17:10 abs Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -2145,7 +2145,7 @@
 
         if (sc->sc_mediachange)
                 return ((*sc->sc_mediachange)(sc));
-        return (EINVAL);
+        return (0);
 }
 
 /*
diff -r fde0b4861f61 -r 4223135a23fe sys/dev/ic/mb86960.c
--- a/sys/dev/ic/mb86960.c      Wed Jun 23 03:27:34 1999 +0000
+++ b/sys/dev/ic/mb86960.c      Wed Jun 23 04:17:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mb86960.c,v 1.33 1999/05/18 23:52:56 thorpej Exp $     */
+/*     $NetBSD: mb86960.c,v 1.34 1999/06/23 04:17:11 abs Exp $ */
 
 /*
  * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@@ -343,7 +343,7 @@
 
        if (sc->sc_mediachange)
                return ((*sc->sc_mediachange)(sc));
-       return (EINVAL);
+       return (0);
 }
 
 /*



Home | Main Index | Thread Index | Old Index