summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-10 19:23:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-10 19:23:36 +0000
commit13f2bd5d743e4e1f5ac2edb5e184e1633ea0366e (patch)
tree955e2462426371ebc829f2cc2b4ebafec1ee339f /sys
parent390d85bff40ba0b739dbd095949cd3c8ed61803c (diff)
Remove debug code.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sh/sh/in_cksum.S24
1 files changed, 2 insertions, 22 deletions
diff --git a/sys/arch/sh/sh/in_cksum.S b/sys/arch/sh/sh/in_cksum.S
index f03ddb3bf96..cf541bd75f3 100644
--- a/sys/arch/sh/sh/in_cksum.S
+++ b/sys/arch/sh/sh/in_cksum.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_cksum.S,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: in_cksum.S,v 1.2 2006/11/10 19:23:35 miod Exp $ */
/* $NetBSD: in_cksum.S,v 1.10 2006/04/11 23:45:13 uwe Exp $ */
/*-
@@ -102,7 +102,7 @@ ENTRY(in_cksum)
bt/s mbuf_loop_done
mbuf_loop:
tst reg_m,reg_m
- bt out_of_mbufs
+ bt mbuf_loop_done
mov.l @(M_LEN,reg_m),reg_mlen
tst reg_mlen,reg_mlen
@@ -196,26 +196,6 @@ in_cksum_return:
extu.w r0,r0
-out_of_mbufs:
- mova .L_message_out_of_data,reg_tmp0
- mov.l .L_printf,reg_tmp3
-
- mov.l reg_sum,@-sp /* save: call clobbered register */
-
- jsr @reg_tmp3
- mov reg_tmp0,r4
-
- bra in_cksum_return
- mov.l @sp+,reg_sum /* restore */
-
- .align 2
-.L_printf:
- .long _C_LABEL(printf)
-
- .align 2 /* mova target */
-.L_message_out_of_data:
- .asciz "cksum: out of data (%d byte short)\n"
-
SET_ENTRY_SIZE(in_cksum)