Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vax Move the diagnostic tests with the if.
details: https://anonhg.NetBSD.org/src/rev/95eb92fd4735
branches: trunk
changeset: 510109:95eb92fd4735
user: matt <matt%NetBSD.org@localhost>
date: Sat May 19 23:47:19 2001 +0000
description:
Move the diagnostic tests with the if.
diffstat:
sys/arch/vax/vax/in4_cksum.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 083d8e7e372f -r 95eb92fd4735 sys/arch/vax/vax/in4_cksum.c
--- a/sys/arch/vax/vax/in4_cksum.c Sat May 19 19:46:08 2001 +0000
+++ b/sys/arch/vax/vax/in4_cksum.c Sat May 19 23:47:19 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in4_cksum.c,v 1.3 2001/05/19 00:04:56 matt Exp $ */
+/* $NetBSD: in4_cksum.c,v 1.4 2001/05/19 23:47:19 matt Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@@ -118,14 +118,14 @@
int debugrv = in4_cksum_md_debug(m, nxt, off, len);
#endif
+ if (nxt != 0) {
#ifdef DIAGNOSTIC
- if (off < sizeof(struct ipovly))
- panic("in4_cksum: offset too short");
- if (m->m_len < sizeof(struct ip))
- panic("in4_cksum: bad mbuf chain");
+ if (off < sizeof(struct ipovly))
+ panic("in4_cksum: offset too short");
+ if (m->m_len < sizeof(struct ip))
+ panic("in4_cksum: bad mbuf chain");
#endif
- if (nxt != 0) {
__asm __volatile("
movzwl 16(ap),%0 # mov len to sum
addb2 8(ap),%0 # add proto to sum
Home |
Main Index |
Thread Index |
Old Index