Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/drm Compare dev->agp and dev-...
details: https://anonhg.NetBSD.org/src/rev/a0f692b54e86
branches: riastradh-drm2
changeset: 788348:a0f692b54e86
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:22:11 2013 +0000
description:
Compare dev->agp and dev->sg against NULL in drm_fops.c.
diffstat:
sys/external/bsd/drm2/drm/drm_fops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r f045ceb9204d -r a0f692b54e86 sys/external/bsd/drm2/drm/drm_fops.c
--- a/sys/external/bsd/drm2/drm/drm_fops.c Wed Jul 24 03:21:56 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_fops.c Wed Jul 24 03:22:11 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_fops.c,v 1.1.2.4 2013/07/24 02:45:38 riastradh Exp $ */
+/* $NetBSD: drm_fops.c,v 1.1.2.5 2013/07/24 03:22:11 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.1.2.4 2013/07/24 02:45:38 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.1.2.5 2013/07/24 03:22:11 riastradh Exp $");
#include <drm/drmP.h>
@@ -356,12 +356,12 @@
mutex_lock(&dev->struct_mutex);
if (drm_core_has_AGP(dev) &&
- dev->agp &&
+ (dev->agp != NULL) &&
!drm_core_check_feature(dev, DRIVER_MODESET))
drm_lastclose_agp(dev);
if (drm_core_check_feature(dev, DRIVER_SG) &&
- dev->sg &&
+ (dev->sg != NULL) &&
!drm_core_check_feature(dev, DRIVER_MODESET)) {
drm_sg_cleanup(dev->sg);
dev->sg = NULL;
Home |
Main Index |
Thread Index |
Old Index