提交 b826b4d6 编写于 作者: D 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: NDave Jones <davej@redhat.com>
上级 89cf7ccc
...@@ -47,9 +47,8 @@ static void *sgi_tioca_alloc_page(struct agp_bridge_data *bridge) ...@@ -47,9 +47,8 @@ static void *sgi_tioca_alloc_page(struct agp_bridge_data *bridge)
nid = info->ca_closest_node; nid = info->ca_closest_node;
page = alloc_pages_node(nid, GFP_KERNEL, 0); page = alloc_pages_node(nid, GFP_KERNEL, 0);
if (page == NULL) { if (!page)
return 0; return NULL;
}
get_page(page); get_page(page);
SetPageLocked(page); SetPageLocked(page);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册