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/dist/drm Fix up #ifdefs.



details:   https://anonhg.NetBSD.org/src/rev/9deb22247fd9
branches:  trunk
changeset: 1027779:9deb22247fd9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:29:02 2021 +0000

description:
Fix up #ifdefs.

diffstat:

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

diffs (31 lines):

diff -r b3115bbf6976 -r 9deb22247fd9 sys/external/bsd/drm2/dist/drm/drm_fb_helper.c
--- a/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c    Sun Dec 19 00:28:55 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_fb_helper.c    Sun Dec 19 00:29:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_fb_helper.c,v 1.17 2021/12/18 23:44:57 riastradh Exp $     */
+/*     $NetBSD: drm_fb_helper.c,v 1.18 2021/12/19 00:29:02 riastradh Exp $     */
 
 /*
  * Copyright (c) 2006-2009 Red Hat Inc.
@@ -30,7 +30,7 @@
  *      Jesse Barnes <jesse.barnes%intel.com@localhost>
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_fb_helper.c,v 1.17 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_fb_helper.c,v 1.18 2021/12/19 00:29:02 riastradh Exp $");
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
@@ -615,11 +615,8 @@
        mutex_lock(&kernel_fb_helper_lock);
        if (!list_empty(&fb_helper->kernel_fb_list)) {
                list_del(&fb_helper->kernel_fb_list);
-               if (list_empty(&kernel_fb_helper_list)) {
-#ifndef __NetBSD__             /* XXX drm sysrq */
+               if (list_empty(&kernel_fb_helper_list))
                        unregister_sysrq_key('v', &sysrq_drm_fb_helper_restore_op);
-#endif
-               }
        }
        mutex_unlock(&kernel_fb_helper_lock);
 



Home | Main Index | Thread Index | Old Index