Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/drm Actually convert errno as comment ...



details:   https://anonhg.NetBSD.org/src/rev/c75b8ce01706
branches:  trunk
changeset: 365814:c75b8ce01706
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:51:17 2018 +0000

description:
Actually convert errno as comment suggests.

diffstat:

 sys/external/bsd/drm2/drm/drm_cdevsw.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f1d77bf9172d -r c75b8ce01706 sys/external/bsd/drm2/drm/drm_cdevsw.c
--- a/sys/external/bsd/drm2/drm/drm_cdevsw.c    Mon Aug 27 06:51:07 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cdevsw.c    Mon Aug 27 06:51:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_cdevsw.c,v 1.4 2018/08/27 06:50:58 riastradh Exp $ */
+/*     $NetBSD: drm_cdevsw.c,v 1.5 2018/08/27 06:51:17 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.4 2018/08/27 06:50:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.5 2018/08/27 06:51:17 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -151,7 +151,7 @@
 
        if (firstopen) {
                /* XXX errno Linux->NetBSD */
-               error = drm_firstopen(dev);
+               error = -drm_firstopen(dev);
                if (error)
                        goto fail2;
        }



Home | Main Index | Thread Index | Old Index