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 drm_lastclose now rightly returns ...



details:   https://anonhg.NetBSD.org/src/rev/2d750f06c79a
branches:  trunk
changeset: 1027814:2d750f06c79a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:48:38 2021 +0000

description:
drm_lastclose now rightly returns void.

diffstat:

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

diffs (54 lines):

diff -r 5bd5dbb62524 -r 2d750f06c79a sys/external/bsd/drm2/drm/drm_cdevsw.c
--- a/sys/external/bsd/drm2/drm/drm_cdevsw.c    Sun Dec 19 00:48:30 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cdevsw.c    Sun Dec 19 00:48:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_cdevsw.c,v 1.17 2021/12/19 00:28:20 riastradh Exp $        */
+/*     $NetBSD: drm_cdevsw.c,v 1.18 2021/12/19 00:48:38 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.17 2021/12/19 00:28:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.18 2021/12/19 00:48:38 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -182,7 +182,7 @@
        lastclose = (dev->open_count == 0);
        mutex_unlock(&drm_global_mutex);
        if (lastclose)
-               (void)drm_lastclose(dev);
+               drm_lastclose(dev);
 fail1: drm_minor_release(dminor);
 fail0: KASSERT(error);
        if (error == ERESTARTSYS)
@@ -208,7 +208,7 @@
        mutex_unlock(&drm_global_mutex);
 
        if (lastclose)
-               (void)drm_lastclose(dev);
+               drm_lastclose(dev);
 
        drm_minor_release(dminor);
 
@@ -243,7 +243,7 @@
        return ret;
 }
 
-int
+void
 drm_lastclose(struct drm_device *dev)
 {
 
@@ -267,8 +267,6 @@
                dev->last_context = 0;
                dev->if_version = 0;
        }
-
-       return 0;
 }
 
 static int



Home | Main Index | Thread Index | Old Index