Commit d91c4b08 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Fix sparse NULL pointer warnings.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 212872bf
......@@ -917,7 +917,7 @@ void *agp_generic_alloc_page(void)
page = alloc_page(GFP_KERNEL);
if (page == NULL)
return 0;
return NULL;
map_page_into_agp(page);
......
......@@ -369,7 +369,7 @@ static int intel_i830_create_gatt_table(void)
size = agp_bridge->current_size;
page_order = size->page_order;
num_entries = size->num_entries;
agp_bridge->gatt_table_real = 0;
agp_bridge->gatt_table_real = NULL;
pci_read_config_dword(intel_i830_private.i830_dev,I810_MMADDR,&temp);
temp &= 0xfff80000;
......
......@@ -167,7 +167,7 @@ static int intel_i830_create_gatt_table(void)
size = agp_bridge->current_size;
page_order = size->page_order;
num_entries = size->num_entries;
agp_bridge->gatt_table_real = 0;
agp_bridge->gatt_table_real = NULL;
pci_read_config_dword(intel_i830_private.i830_dev,I810_MMADDR,&temp);
temp &= 0xfff80000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment