Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Avoid a warning



details:   https://anonhg.NetBSD.org/src/rev/d0e43de676ab
branches:  trunk
changeset: 845583:d0e43de676ab
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Oct 07 09:37:16 2019 +0000

description:
Avoid a warning

diffstat:

 sys/dev/usb/if_udav.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 878488623eb9 -r d0e43de676ab sys/dev/usb/if_udav.c
--- a/sys/dev/usb/if_udav.c     Mon Oct 07 02:56:33 2019 +0000
+++ b/sys/dev/usb/if_udav.c     Mon Oct 07 09:37:16 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_udav.c,v 1.71 2019/08/23 04:32:57 mrg Exp $ */
+/*     $NetBSD: if_udav.c,v 1.72 2019/10/07 09:37:16 skrll Exp $       */
 /*     $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $   */
 
 /*
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_udav.c,v 1.71 2019/08/23 04:32:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_udav.c,v 1.72 2019/10/07 09:37:16 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -864,7 +864,7 @@
        if (usbnet_isdying(un))
                return;
 
-       if (mii->mii_media_status & IFM_ACTIVE &&
+       if ((mii->mii_media_status & IFM_ACTIVE) &&
            IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) {
                DPRINTF(("%s: %s: got link\n",
                         device_xname(un->un_dev), __func__));



Home | Main Index | Thread Index | Old Index