]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/radeon: NULL noise: drivers/gpu/drm/radeon/radeon_*.c
authorHannes Eder <hannes@hanneseder.net>
Thu, 5 Mar 2009 19:14:18 +0000 (20:14 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:19 +0000 (14:24 +1000)
Fix this sparse warning:
  drivers/gpu/drm/radeon/r600_cp.c:1811:52: warning: Using plain integer as NULL pointer
  drivers/gpu/drm/radeon/radeon_cp.c:1363:52: warning: Using plain integer as NULL pointer
  drivers/gpu/drm/radeon/radeon_state.c:1983:61: warning: Using plain integer as NULL pointer

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_cp.c
drivers/gpu/drm/radeon/radeon_cp.c
drivers/gpu/drm/radeon/radeon_state.c

index be2bba66d5d99328674b364d0aef1c58b7c246df..6f2cc74350c591014412729106fb07ce3ed82f82 100644 (file)
@@ -1811,7 +1811,7 @@ int r600_do_cleanup_cp(struct drm_device *dev)
 
                if (dev_priv->gart_info.gart_table_location == DRM_ATI_GART_FB) {
                        drm_core_ioremapfree(&dev_priv->gart_info.mapping, dev);
-                       dev_priv->gart_info.addr = 0;
+                       dev_priv->gart_info.addr = NULL;
                }
        }
        /* only clear to the start of flags */
index f5b7e471cc6d96cbe3905963b53201fae3d8d893..6f579a8e5349253ed9037c1862be3bd7c54e23c1 100644 (file)
@@ -1541,7 +1541,7 @@ static int radeon_do_cleanup_cp(struct drm_device * dev)
                if (dev_priv->gart_info.gart_table_location == DRM_ATI_GART_FB)
                {
                        drm_core_ioremapfree(&dev_priv->gart_info.mapping, dev);
-                       dev_priv->gart_info.addr = 0;
+                       dev_priv->gart_info.addr = NULL;
                }
        }
        /* only clear to the start of flags */
index ca00cef4502d7b3c88e4a33152c3973dfa16e24f..fa728ec6ed34c18bb66a8c78505467d9918ef7b0 100644 (file)
@@ -1986,7 +1986,7 @@ static int alloc_surface(drm_radeon_surface_alloc_t *new,
 
        /* find a virtual surface */
        for (i = 0; i < 2 * RADEON_MAX_SURFACES; i++)
-               if (dev_priv->virt_surfaces[i].file_priv == 0)
+               if (dev_priv->virt_surfaces[i].file_priv == NULL)
                        break;
        if (i == 2 * RADEON_MAX_SURFACES) {
                return -1;