Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Oops, missing return;



details:   https://anonhg.NetBSD.org/src/rev/7549252da72a
branches:  trunk
changeset: 481647:7549252da72a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Feb 03 05:38:57 2000 +0000

description:
Oops, missing return;

diffstat:

 sys/dev/mii/mii_physubr.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r c2d9eb70607b -r 7549252da72a sys/dev/mii/mii_physubr.c
--- a/sys/dev/mii/mii_physubr.c Thu Feb 03 05:27:57 2000 +0000
+++ b/sys/dev/mii/mii_physubr.c Thu Feb 03 05:38:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_physubr.c,v 1.12 2000/02/02 23:34:57 thorpej Exp $ */
+/*     $NetBSD: mii_physubr.c,v 1.13 2000/02/03 05:38:57 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -76,8 +76,10 @@
        struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
        int bmcr, anar;
 
-       if (IFM_SUBTYPE(ife->ifm_media) == IFM_AUTO)
+       if (IFM_SUBTYPE(ife->ifm_media) == IFM_AUTO) {
                (void) mii_phy_auto(sc, 1);
+               return;
+       }
 
        /*
         * Table index is stored in the media entry.



Home | Main Index | Thread Index | Old Index