summaryrefslogtreecommitdiff
path: root/linux-core/via_mm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-08-14 11:49:52 +1000
committerDave Airlie <airlied@linux.ie>2006-08-14 11:49:52 +1000
commit18a48a9267826a3c81e87a5fa9bba79ea0cd295c (patch)
tree7eb07cbc14a5acf08d4914af428c64b472e498a2 /linux-core/via_mm.c
parent7a46d4139982cc82559ccf9a1bc09a52bdf12223 (diff)
remove all TRUE/FALSE no need for this in the drm, use 0 or 1
Diffstat (limited to 'linux-core/via_mm.c')
-rw-r--r--linux-core/via_mm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/via_mm.c b/linux-core/via_mm.c
index f4d147e9..3195c066 100644
--- a/linux-core/via_mm.c
+++ b/linux-core/via_mm.c
@@ -118,8 +118,8 @@ void via_lastclose(struct drm_device *dev)
mutex_lock(&dev->struct_mutex);
drm_sman_cleanup(&dev_priv->sman);
- dev_priv->vram_initialized = FALSE;
- dev_priv->agp_initialized = FALSE;
+ dev_priv->vram_initialized = 0;
+ dev_priv->agp_initialized = 0;
mutex_unlock(&dev->struct_mutex);
}
@@ -141,7 +141,7 @@ int via_mem_alloc(DRM_IOCTL_ARGS)
return DRM_ERR(EINVAL);
}
mutex_lock(&dev->struct_mutex);
- if (FALSE == ((mem.type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized :
+ if (0 == ((mem.type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized :
dev_priv->agp_initialized)) {
DRM_ERROR
("Attempt to allocate from uninitialized memory manager.\n");