[AGPGART] Fix sparse warning in sgi-agp.c

drivers/char/agp/sgi-agp.c:51:10: warning: Using plain integer as NULL pointer

Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
Dave Jones 2007-04-09 02:20:34 -04:00
parent 89cf7ccc93
commit b826b4d6e4
1 changed files with 2 additions and 3 deletions

View File

@ -47,9 +47,8 @@ static void *sgi_tioca_alloc_page(struct agp_bridge_data *bridge)
nid = info->ca_closest_node;
page = alloc_pages_node(nid, GFP_KERNEL, 0);
if (page == NULL) {
return 0;
}
if (!page)
return NULL;
get_page(page);
SetPageLocked(page);