Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net KNF. No functional change.
details: https://anonhg.NetBSD.org/src/rev/7d8648ef3ebf
branches: trunk
changeset: 450318:7d8648ef3ebf
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Apr 10 08:23:46 2019 +0000
description:
KNF. No functional change.
diffstat:
sys/net/if_media.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r e057ce12ead6 -r 7d8648ef3ebf sys/net/if_media.c
--- a/sys/net/if_media.c Wed Apr 10 08:22:18 2019 +0000
+++ b/sys/net/if_media.c Wed Apr 10 08:23:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_media.c,v 1.39 2019/04/10 08:22:18 msaitoh Exp $ */
+/* $NetBSD: if_media.c,v 1.40 2019/04/10 08:23:46 msaitoh Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.39 2019/04/10 08:22:18 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.40 2019/04/10 08:23:46 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -91,8 +91,10 @@
#include <compat/sys/sockio.h>
-static void ifmedia_status(struct ifmedia *, struct ifnet *, struct ifmediareq *);
-static int _ifmedia_ioctl(struct ifnet *, struct ifreq *, struct ifmedia *, u_long);
+static void ifmedia_status(struct ifmedia *, struct ifnet *,
+ struct ifmediareq *);
+static int _ifmedia_ioctl(struct ifnet *, struct ifreq *,
+ struct ifmedia *, u_long);
/*
* Compile-time options:
@@ -350,9 +352,8 @@
? (size_t)ifmr->ifm_count : nwords;
int *kptr = malloc(minwords * sizeof(int), M_TEMP,
M_WAITOK);
- /*
- * Get the media words from the interface's list.
- */
+
+ /* Get the media words from the interface's list. */
ep = TAILQ_FIRST(&ifm->ifm_list);
for (count = 0; ep != NULL && count < minwords;
ep = TAILQ_NEXT(ep, ifm_list), count++)
Home |
Main Index |
Thread Index |
Old Index