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

[AGPGART] Sparse trivial warning fixes.

Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent d45fc9d0
...@@ -162,11 +162,11 @@ static void *i8xx_alloc_pages(void) ...@@ -162,11 +162,11 @@ static void *i8xx_alloc_pages(void)
page = alloc_pages(GFP_KERNEL, 2); page = alloc_pages(GFP_KERNEL, 2);
if (page == NULL) { if (page == NULL) {
return 0; return NULL;
} }
if (change_page_attr(page, 4, PAGE_KERNEL_NOCACHE) < 0) { if (change_page_attr(page, 4, PAGE_KERNEL_NOCACHE) < 0) {
__free_page(page); __free_page(page);
return 0; return NULL;
} }
get_page(page); get_page(page);
SetPageLocked(page); SetPageLocked(page);
...@@ -746,7 +746,7 @@ static int intel_i915_create_gatt_table(void) ...@@ -746,7 +746,7 @@ static int intel_i915_create_gatt_table(void)
size = agp_bridge->current_size; size = agp_bridge->current_size;
page_order = size->page_order; page_order = size->page_order;
num_entries = size->num_entries; 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, I915_MMADDR, &temp); pci_read_config_dword(intel_i830_private.i830_dev, I915_MMADDR, &temp);
pci_read_config_dword(intel_i830_private.i830_dev, I915_PTEADDR,&temp2); pci_read_config_dword(intel_i830_private.i830_dev, I915_PTEADDR,&temp2);
......
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