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/radeon Quickly hide a KASSERT that fir...



details:   https://anonhg.NetBSD.org/src/rev/64a6537de814
branches:  trunk
changeset: 456905:64a6537de814
user:      maya <maya%NetBSD.org@localhost>
date:      Fri May 31 03:28:48 2019 +0000

description:
Quickly hide a KASSERT that fires, hopefully before people trip over it.

diffstat:

 sys/external/bsd/drm2/radeon/radeondrmkmsfb.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 314e2c6b2422 -r 64a6537de814 sys/external/bsd/drm2/radeon/radeondrmkmsfb.c
--- a/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Fri May 31 03:10:31 2019 +0000
+++ b/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c     Fri May 31 03:28:48 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeondrmkmsfb.c,v 1.10 2019/05/31 02:35:08 maya Exp $ */
+/*     $NetBSD: radeondrmkmsfb.c,v 1.11 2019/05/31 03:28:48 maya Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.10 2019/05/31 02:35:08 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeondrmkmsfb.c,v 1.11 2019/05/31 03:28:48 maya Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -192,9 +192,6 @@
        if (offset < 0)
                return -1;
 
-       const unsigned num_pages __diagused = rbo->tbo.num_pages;
-
-       KASSERT(offset == (num_pages << PAGE_SHIFT));
        KASSERT(rbo->tbo.mem.bus.is_iomem);
 
        if (ISSET(rbo->tbo.mem.placement, TTM_PL_FLAG_WC))



Home | Main Index | Thread Index | Old Index