Commit b826b4d6 authored by Dave Jones's avatar Dave Jones

[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: default avatarDave Jones <davej@redhat.com>
parent 89cf7ccc
......@@ -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);
......
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