Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/darwin Mark some suspicious ENODEV returns (shoul...



details:   https://anonhg.NetBSD.org/src/rev/8862a877bee0
branches:  trunk
changeset: 752372:8862a877bee0
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Wed Feb 24 17:59:33 2010 +0000

description:
Mark some suspicious ENODEV returns (should be ENXIO?) with comments.

diffstat:

 sys/compat/darwin/darwin_ioframebuffer.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 65faa991dcf6 -r 8862a877bee0 sys/compat/darwin/darwin_ioframebuffer.c
--- a/sys/compat/darwin/darwin_ioframebuffer.c  Wed Feb 24 17:34:56 2010 +0000
+++ b/sys/compat/darwin/darwin_ioframebuffer.c  Wed Feb 24 17:59:33 2010 +0000
@@ -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 */
 }



Home | Main Index | Thread Index | Old Index