From aa2984d080416dd37d1a42b447539fbfb410d378 Mon Sep 17 00:00:00 2001 From: visa Date: Tue, 5 Jul 2016 13:41:46 +0000 Subject: [PATCH] Remove debug code that slipped in. --- sys/arch/octeon/octeon/openprom.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/arch/octeon/octeon/openprom.c b/sys/arch/octeon/octeon/openprom.c index 7706331aec4..1b107958e90 100644 --- a/sys/arch/octeon/octeon/openprom.c +++ b/sys/arch/octeon/octeon/openprom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openprom.c,v 1.1 2016/07/05 12:53:40 visa Exp $ */ +/* $OpenBSD: openprom.c,v 1.2 2016/07/05 13:41:46 visa Exp $ */ /* $NetBSD: openprom.c,v 1.4 2002/01/10 06:21:53 briggs Exp $ */ /* @@ -200,10 +200,8 @@ openpromioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) case OPIOCNEXTPROP: if ((flags & FREAD) == 0) return (EBADF); - if (node == 0) { - printf("%s node == 0\n", __func__); + if (node == 0) return (EINVAL); - } error = openpromgetstr(op->op_namelen, op->op_name, &name); if (error) break; @@ -222,7 +220,6 @@ openpromioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) error = OF_nextprop(node, buf, nextprop); splx(s); if (error == -1) { - printf("%s OF_nextprop\n", __func__); error = EINVAL; break; } -- 2.20.1