diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2006-01-24 22:54:15 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-24 22:54:15 -0500 |
commit | f1e5c03d34c39394781ae13543cd3355976e4812 (patch) | |
tree | 2b4bfbab8a0870b65af8d0736983f10088147575 /drivers/char/drm/ati_pcigart.c | |
parent | 2fed3bd7436e8988980989493c16b4983be1a800 (diff) |
drm: use NULL instead of 0
From: Randy Dunlap <rdunlap@xenotime.net>
Use NULL instead of 0 (sparse warnings):
drivers/char/drm/ati_pcigart.c:64:10: warning: Using plain integer as NULL
pointer
drivers/char/drm/ati_pcigart.c:130:21: warning: Using plain integer as NULL
pointer
drivers/char/drm/ati_pcigart.c:171:14: warning: Using plain integer as NULL
pointer
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/ati_pcigart.c')
-rw-r--r-- | drivers/char/drm/ati_pcigart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/drm/ati_pcigart.c b/drivers/char/drm/ati_pcigart.c index 5485382cadec..7d2a885b5db0 100644 --- a/drivers/char/drm/ati_pcigart.c +++ b/drivers/char/drm/ati_pcigart.c | |||
@@ -61,7 +61,7 @@ static void *drm_ati_alloc_pcigart_table(void) | |||
61 | 61 | ||
62 | address = __get_free_pages(GFP_KERNEL, ATI_PCIGART_TABLE_ORDER); | 62 | address = __get_free_pages(GFP_KERNEL, ATI_PCIGART_TABLE_ORDER); |
63 | if (address == 0UL) { | 63 | if (address == 0UL) { |
64 | return 0; | 64 | return NULL; |
65 | } | 65 | } |
66 | 66 | ||
67 | page = virt_to_page(address); | 67 | page = virt_to_page(address); |
@@ -127,7 +127,7 @@ int drm_ati_pcigart_cleanup(drm_device_t *dev, drm_ati_pcigart_info *gart_info) | |||
127 | if (gart_info->gart_table_location == DRM_ATI_GART_MAIN | 127 | if (gart_info->gart_table_location == DRM_ATI_GART_MAIN |
128 | && gart_info->addr) { | 128 | && gart_info->addr) { |
129 | drm_ati_free_pcigart_table(gart_info->addr); | 129 | drm_ati_free_pcigart_table(gart_info->addr); |
130 | gart_info->addr = 0; | 130 | gart_info->addr = NULL; |
131 | } | 131 | } |
132 | 132 | ||
133 | return 1; | 133 | return 1; |
@@ -168,7 +168,7 @@ int drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info) | |||
168 | if (bus_address == 0) { | 168 | if (bus_address == 0) { |
169 | DRM_ERROR("unable to map PCIGART pages!\n"); | 169 | DRM_ERROR("unable to map PCIGART pages!\n"); |
170 | drm_ati_free_pcigart_table(address); | 170 | drm_ati_free_pcigart_table(address); |
171 | address = 0; | 171 | address = NULL; |
172 | goto done; | 172 | goto done; |
173 | } | 173 | } |
174 | } else { | 174 | } else { |