summaryrefslogtreecommitdiff
path: root/sys/dev/isa/fd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-18 10:37:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-18 10:37:20 +0000
commitffa2ea42b8b116d148c113bea0d2458accd19a2a (patch)
treef5558b2b36d01865a51095125be30f0f8fdcfc85 /sys/dev/isa/fd.c
parent035e821a9286f8b53fc595a4155f108852b2968a (diff)
avoid "no disklabel" error messages
Diffstat (limited to 'sys/dev/isa/fd.c')
-rw-r--r--sys/dev/isa/fd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c
index adff6a5703d..492011434d1 100644
--- a/sys/dev/isa/fd.c
+++ b/sys/dev/isa/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.34 1997/04/07 22:48:08 rees Exp $ */
+/* $OpenBSD: fd.c,v 1.35 1997/10/18 10:37:09 deraadt Exp $ */
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
/*-
@@ -993,8 +993,10 @@ fdioctl(dev, cmd, addr, flag, p)
lp->d_checksum = dkcksum(lp);
errstring = readdisklabel(dev, fdstrategy, lp, &cdl);
- if (errstring)
- printf("%s: %s\n", fd->sc_dev.dv_xname, errstring);
+ if (errstring) {
+ /*printf("%s: %s\n", fd->sc_dev.dv_xname, errstring); */
+ return 0;
+ }
*(struct disklabel *)addr = *lp;
return 0;