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

This commit is contained in:
dyoung 2010-02-24 17:59:33 +00:00
parent c672648cd8
commit 9e575a840e
1 changed files with 4 additions and 4 deletions

View File

@ -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 @@ darwin_findscreen(dev_t *dev, int unit, int screen)
/* 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 @@ darwin_findscreen(dev_t *dev, int unit, int screen)
#endif /* DEBUG_DARWIN */
return 0;
#else /* defined(NWSDISPLAY) && NWSDISPLAY > 0 */
return ENODEV;
return ENODEV; /* XXX not ENXIO? */
#endif /* defined(NWSDISPLAY) && NWSDISPLAY > 0 */
}