diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2016-07-05 13:41:47 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2016-07-05 13:41:47 +0000 |
commit | 853cdc3109c2236526d7d16ef72c76905fefb031 (patch) | |
tree | fd789ebd2b89a43f2150525c946e69a8d4bec47d /sys/arch | |
parent | 78193046c6eeb1a4a0fc2197633a5c66ff5d67ff (diff) |
Remove debug code that slipped in.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/octeon/octeon/openprom.c | 7 |
1 files 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; } |