Module Name: src
Committed By: msaitoh
Date: Wed Apr 10 08:23:46 UTC 2019
Modified Files:
src/sys/net: if_media.c
Log Message:
KNF. No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/net/if_media.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_media.c
diff -u src/sys/net/if_media.c:1.39 src/sys/net/if_media.c:1.40
--- src/sys/net/if_media.c:1.39 Wed Apr 10 08:22:18 2019
+++ src/sys/net/if_media.c Wed Apr 10 08:23:46 2019
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: if_media.c,v
#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 @@ _ifmedia_ioctl(struct ifnet *ifp, struct
? (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++)