forked from Minki/linux
[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:
parent
89cf7ccc93
commit
b826b4d6e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user