Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Use ENODEV to show that an operation is not supported.



details:   https://anonhg.NetBSD.org/src/rev/2f7ff4d1e5eb
branches:  trunk
changeset: 339953:2f7ff4d1e5eb
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue Aug 18 04:20:25 2015 +0000

description:
Use ENODEV to show that an operation is not supported.

diffstat:

 sys/dev/ld.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r a24ef37c4f6e -r 2f7ff4d1e5eb sys/dev/ld.c
--- a/sys/dev/ld.c      Tue Aug 18 00:58:35 2015 +0000
+++ b/sys/dev/ld.c      Tue Aug 18 04:20:25 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld.c,v 1.90 2015/08/17 19:47:21 jakllsch Exp $ */
+/*     $NetBSD: ld.c,v 1.91 2015/08/18 04:20:25 mlelstv Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.90 2015/08/17 19:47:21 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.91 2015/08/18 04:20:25 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -495,7 +495,7 @@
        struct ld_softc *sc = device_private(dev);
 
        if (sc->sc_dump == NULL)
-               return (ENXIO);
+               return (ENODEV);
 
        return (*sc->sc_dump)(sc, va, blkno, nblk);
 }
@@ -588,7 +588,7 @@
        struct ld_softc *sc = device_private(dev);
 
        if (sc->sc_discard == NULL)
-               return (ENXIO);
+               return (ENODEV);
 
        return (*sc->sc_discard)(sc, pos, len);
 }



Home | Main Index | Thread Index | Old Index