summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-10 19:23:16 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-10 19:23:16 +0000
commit390d85bff40ba0b739dbd095949cd3c8ed61803c (patch)
tree49791ff2f1f6053ce842617b403f1e67c8846543 /sys/arch
parent73fc99852df1360e5751a7ca64964ac6c2c1d2fa (diff)
Remove unnecessary failure printf. That's what nonzero return codes are for.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/landisk/dev/obio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/landisk/dev/obio.c b/sys/arch/landisk/dev/obio.c
index c94ef48bf26..1dd6074273b 100644
--- a/sys/arch/landisk/dev/obio.c
+++ b/sys/arch/landisk/dev/obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obio.c,v 1.4 2006/10/31 23:25:57 miod Exp $ */
+/* $OpenBSD: obio.c,v 1.5 2006/11/10 19:23:15 miod Exp $ */
/* $NetBSD: obio.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
@@ -249,10 +249,8 @@ obio_iomem_add_mapping(bus_addr_t bpa, bus_size_t size, int type,
#endif
va = uvm_km_valloc(kernel_map, endpa - pa);
- if (va == 0){
- printf("obio_iomem_add_mapping: nomem\n");
+ if (va == 0)
return (ENOMEM);
- }
*bshp = (bus_space_handle_t)(va + (bpa & PGOFSET));