aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/via_mm.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-08-13 21:35:15 -0400
committerDave Airlie <airlied@linux.ie>2006-09-21 15:32:32 -0400
commita1d0fcf5a1cf56ae4711c7e0f857832724a67e8b (patch)
tree2773f67ec366cecdf18de83a0df867ce7164fe93 /drivers/char/drm/via_mm.c
parentc29b669caae4ed1630ef479e54bdde126a0378ec (diff)
drm: remove FALSE/TRUE that snuck in with simple memory manager changes.
Thanks to Andrew Morton for pointing these out, I've fixed a few his patch missed. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/via_mm.c')
-rw-r--r--drivers/char/drm/via_mm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/drm/via_mm.c b/drivers/char/drm/via_mm.c
index 9d9237ef9448..d6c08e1d768f 100644
--- a/drivers/char/drm/via_mm.c
+++ b/drivers/char/drm/via_mm.c
@@ -116,8 +116,8 @@ void via_lastclose(struct drm_device *dev)
116 116
117 mutex_lock(&dev->struct_mutex); 117 mutex_lock(&dev->struct_mutex);
118 drm_sman_cleanup(&dev_priv->sman); 118 drm_sman_cleanup(&dev_priv->sman);
119 dev_priv->vram_initialized = FALSE; 119 dev_priv->vram_initialized = 0;
120 dev_priv->agp_initialized = FALSE; 120 dev_priv->agp_initialized = 0;
121 mutex_unlock(&dev->struct_mutex); 121 mutex_unlock(&dev->struct_mutex);
122} 122}
123 123
@@ -139,7 +139,7 @@ int via_mem_alloc(DRM_IOCTL_ARGS)
139 return DRM_ERR(EINVAL); 139 return DRM_ERR(EINVAL);
140 } 140 }
141 mutex_lock(&dev->struct_mutex); 141 mutex_lock(&dev->struct_mutex);
142 if (FALSE == ((mem.type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized : 142 if (0 == ((mem.type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized :
143 dev_priv->agp_initialized)) { 143 dev_priv->agp_initialized)) {
144 DRM_ERROR 144 DRM_ERROR
145 ("Attempt to allocate from uninitialized memory manager.\n"); 145 ("Attempt to allocate from uninitialized memory manager.\n");