Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern style
details: https://anonhg.NetBSD.org/src/rev/7c34347329c6
branches: trunk
changeset: 829009:7c34347329c6
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Jan 14 16:59:37 2018 +0000
description:
style
diffstat:
sys/kern/uipc_mbuf.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (55 lines):
diff -r eef98388c778 -r 7c34347329c6 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Sun Jan 14 16:50:37 2018 +0000
+++ b/sys/kern/uipc_mbuf.c Sun Jan 14 16:59:37 2018 +0000
@@ -1,6 +1,6 @@
-/* $NetBSD: uipc_mbuf.c,v 1.176 2018/01/01 12:22:59 maxv Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.177 2018/01/14 16:59:37 maxv Exp $ */
-/*-
+/*
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.176 2018/01/01 12:22:59 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.177 2018/01/14 16:59:37 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_mbuftrace.h"
@@ -1648,22 +1648,22 @@
while (loc >= 0) {
/* Normal end of search */
if (m->m_len > loc) {
- *off = loc;
- return (m);
+ *off = loc;
+ return (m);
} else {
- loc -= m->m_len;
+ loc -= m->m_len;
- if (m->m_next == NULL) {
+ if (m->m_next == NULL) {
if (loc == 0) {
- /* Point at the end of valid data */
- *off = m->m_len;
- return (m);
+ /* Point at the end of valid data */
+ *off = m->m_len;
+ return (m);
} else
- return (NULL);
- } else
- m = m->m_next;
+ return (NULL);
+ } else
+ m = m->m_next;
}
- }
+ }
return (NULL);
}
Home |
Main Index |
Thread Index |
Old Index