remove all TRUE/FALSE no need for this in the drm, use 0 or 1
authorDave Airlie <airlied@linux.ie>
Mon, 14 Aug 2006 01:49:52 +0000 (11:49 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 14 Aug 2006 01:49:52 +0000 (11:49 +1000)
linux-core/drm_bufs.c
linux-core/drm_mm.c
linux-core/sis_mm.c
linux-core/via_mm.c

index a977b5b..2eeb401 100644 (file)
@@ -290,7 +290,7 @@ static int drm_addmap_core(drm_device_t * dev, unsigned int offset,
 
        user_token = (map->type == _DRM_SHM) ? (unsigned long) map->handle : 
                map->offset;
-        ret = drm_map_handle(dev, &list->hash, user_token, FALSE); 
+        ret = drm_map_handle(dev, &list->hash, user_token, 0); 
 
        if (ret) {
                 drm_free(map, sizeof(*map), DRM_MEM_MAPS);
index c55ed45..8d95cd4 100644 (file)
@@ -54,7 +54,7 @@ drm_mm_node_t *drm_mm_get_block(drm_mm_node_t * parent,
 
        if (parent->size == size) {
                list_del_init(&parent->fl_entry);
-               parent->free = FALSE;
+               parent->free = 0;
                return parent;
        } else {
                child = (drm_mm_node_t *) drm_alloc(sizeof(*child), DRM_MEM_MM);
@@ -64,7 +64,7 @@ drm_mm_node_t *drm_mm_get_block(drm_mm_node_t * parent,
                INIT_LIST_HEAD(&child->ml_entry);
                INIT_LIST_HEAD(&child->fl_entry);
 
-               child->free = FALSE;
+               child->free = 0;
                child->size = size;
                child->start = parent->start;
 
@@ -89,7 +89,7 @@ void drm_mm_put_block(drm_mm_t * mm, drm_mm_node_t * cur)
        drm_mm_node_t *prev_node = NULL;
        drm_mm_node_t *next_node;
 
-       int merged = FALSE;
+       int merged = 0;
 
        if (cur_head->prev != root_head) {
                prev_node = list_entry(cur_head->prev, drm_mm_node_t, ml_entry);
index 10e4a9a..c321c09 100644 (file)
@@ -139,7 +139,7 @@ static int sis_drm_alloc(drm_device_t * dev, drm_file_t * priv,
 
        mutex_lock(&dev->struct_mutex);
 
-       if (FALSE == ((pool == 0) ? dev_priv->vram_initialized :
+       if (0 == ((pool == 0) ? dev_priv->vram_initialized :
                      dev_priv->agp_initialized)) {
                DRM_ERROR
                    ("Attempt to allocate from uninitialized memory manager.\n");
@@ -312,8 +312,8 @@ void sis_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;
        dev_priv->mmio = NULL;
        mutex_unlock(&dev->struct_mutex);
 }
index f4d147e..3195c06 100644 (file)
@@ -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");