Module Name:    src
Committed By:   soren
Date:           Sat Aug  3 18:30:57 UTC 2013

Modified Files:
        src/sys/dev/dkwedge: dk.c

Log Message:
Don't complain about not being able to open empty removable media drives.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/dkwedge/dk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/dkwedge/dk.c
diff -u src/sys/dev/dkwedge/dk.c:1.66 src/sys/dev/dkwedge/dk.c:1.67
--- src/sys/dev/dkwedge/dk.c:1.66	Wed May 29 00:47:48 2013
+++ src/sys/dev/dkwedge/dk.c	Sat Aug  3 18:30:57 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: dk.c,v 1.66 2013/05/29 00:47:48 christos Exp $	*/
+/*	$NetBSD: dk.c,v 1.67 2013/08/03 18:30:57 soren Exp $	*/
 
 /*-
  * Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.66 2013/05/29 00:47:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.67 2013/08/03 18:30:57 soren Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dkwedge.h"
@@ -846,8 +846,9 @@ dkwedge_discover(struct disk *pdk)
 
 	error = VOP_OPEN(vp, FREAD | FSILENT, NOCRED);
 	if (error) {
-		aprint_error("%s: unable to open device, error = %d\n",
-		    pdk->dk_name, error);
+		if (error != ENODEV)
+			aprint_error("%s: unable to open device, error = %d\n",
+			    pdk->dk_name, error);
 		vput(vp);
 		goto out;
 	}

Reply via email to