Module Name: src Committed By: dyoung Date: Wed Feb 24 17:59:33 UTC 2010
Modified Files: src/sys/compat/darwin: darwin_ioframebuffer.c Log Message: Mark some suspicious ENODEV returns (should be ENXIO?) with comments. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/compat/darwin/darwin_ioframebuffer.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/compat/darwin/darwin_ioframebuffer.c diff -u src/sys/compat/darwin/darwin_ioframebuffer.c:1.43 src/sys/compat/darwin/darwin_ioframebuffer.c:1.44 --- src/sys/compat/darwin/darwin_ioframebuffer.c:1.43 Sun Aug 16 15:35:52 2009 +++ src/sys/compat/darwin/darwin_ioframebuffer.c Wed Feb 24 17:59:33 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: darwin_ioframebuffer.c,v 1.43 2009/08/16 15:35:52 manu Exp $ */ +/* $NetBSD: darwin_ioframebuffer.c,v 1.44 2010/02/24 17:59:33 dyoung Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: darwin_ioframebuffer.c,v 1.43 2009/08/16 15:35:52 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: darwin_ioframebuffer.c,v 1.44 2010/02/24 17:59:33 dyoung Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -811,7 +811,7 @@ /* Find a wsdisplay */ if ((dv = device_find_by_driver_unit("wsdisplay", unit)) == NULL) - return ENODEV; + return ENODEV; /* XXX not ENXIO? */ sc = device_private(dv); @@ -825,6 +825,6 @@ #endif /* DEBUG_DARWIN */ return 0; #else /* defined(NWSDISPLAY) && NWSDISPLAY > 0 */ - return ENODEV; + return ENODEV; /* XXX not ENXIO? */ #endif /* defined(NWSDISPLAY) && NWSDISPLAY > 0 */ }