Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii KNF. No functional change.
details: https://anonhg.NetBSD.org/src/rev/b75ef6f61459
branches: trunk
changeset: 465512:b75ef6f61459
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Nov 26 08:19:51 2019 +0000
description:
KNF. No functional change.
diffstat:
sys/dev/mii/jmphy.c | 22 ++++++----------------
sys/dev/mii/makphy.c | 8 +++-----
sys/dev/mii/qsphy.c | 16 +++++-----------
3 files changed, 14 insertions(+), 32 deletions(-)
diffs (136 lines):
diff -r e4889f93462d -r b75ef6f61459 sys/dev/mii/jmphy.c
--- a/sys/dev/mii/jmphy.c Tue Nov 26 07:51:35 2019 +0000
+++ b/sys/dev/mii/jmphy.c Tue Nov 26 08:19:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jmphy.c,v 1.1 2019/10/30 12:06:26 msaitoh Exp $ */
+/* $NetBSD: jmphy.c,v 1.2 2019/11/26 08:19:51 msaitoh Exp $ */
/* $OpenBSD: jmphy.c,v 1.6 2015/03/14 03:38:48 jsg Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -127,9 +127,7 @@
switch (cmd) {
case MII_POLLSTAT:
- /*
- * If we're not polling our PHY instance, just return.
- */
+ /* If we're not polling our PHY instance, just return. */
if (IFM_INST(ife->ifm_media) != sc->mii_inst)
return 0;
break;
@@ -145,9 +143,7 @@
return 0;
}
- /*
- * If the interface is not up, don't do anything.
- */
+ /* If the interface is not up, don't do anything. */
if ((mii->mii_ifp->if_flags & IFF_UP) == 0)
break;
@@ -156,21 +152,15 @@
break;
case MII_TICK:
- /*
- * If we're not currently selected, just return.
- */
+ /* If we're not currently selected, just return. */
if (IFM_INST(ife->ifm_media) != sc->mii_inst)
return 0;
- /*
- * Is the interface even up?
- */
+ /* Is the interface even up? */
if ((mii->mii_ifp->if_flags & IFF_UP) == 0)
return 0;
- /*
- * Only used for autonegotiation.
- */
+ /* Only used for autonegotiation. */
if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO)
break;
diff -r e4889f93462d -r b75ef6f61459 sys/dev/mii/makphy.c
--- a/sys/dev/mii/makphy.c Tue Nov 26 07:51:35 2019 +0000
+++ b/sys/dev/mii/makphy.c Tue Nov 26 08:19:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makphy.c,v 1.60 2019/07/03 17:40:29 maxv Exp $ */
+/* $NetBSD: makphy.c,v 1.61 2019/11/26 08:19:51 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.60 2019/07/03 17:40:29 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.61 2019/11/26 08:19:51 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -240,9 +240,7 @@
mii_phy_reset(sc);
- /*
- * Initialize PHY Specific Control Register.
- */
+ /* Initialize PHY Specific Control Register. */
PHY_READ(sc, MAKPHY_PSCR, ®);
/* Assert CRS on transmit. */
diff -r e4889f93462d -r b75ef6f61459 sys/dev/mii/qsphy.c
--- a/sys/dev/mii/qsphy.c Tue Nov 26 07:51:35 2019 +0000
+++ b/sys/dev/mii/qsphy.c Tue Nov 26 08:19:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qsphy.c,v 1.52 2019/03/25 09:20:46 msaitoh Exp $ */
+/* $NetBSD: qsphy.c,v 1.53 2019/11/26 08:19:51 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: qsphy.c,v 1.52 2019/03/25 09:20:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: qsphy.c,v 1.53 2019/11/26 08:19:51 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -147,9 +147,7 @@
switch (cmd) {
case MII_POLLSTAT:
- /*
- * If we're not polling our PHY instance, just return.
- */
+ /* If we're not polling our PHY instance, just return. */
if (IFM_INST(ife->ifm_media) != sc->mii_inst)
return 0;
break;
@@ -165,9 +163,7 @@
return 0;
}
- /*
- * If the interface is not up, don't do anything.
- */
+ /* If the interface is not up, don't do anything. */
if ((mii->mii_ifp->if_flags & IFF_UP) == 0)
break;
@@ -175,9 +171,7 @@
break;
case MII_TICK:
- /*
- * If we're not currently selected, just return.
- */
+ /* If we're not currently selected, just return. */
if (IFM_INST(ife->ifm_media) != sc->mii_inst)
return 0;
Home |
Main Index |
Thread Index |
Old Index