Skip to content

Commit

Permalink
[AGPGART] Fix sparse warning in sgi-agp.c
Browse files Browse the repository at this point in the history
drivers/char/agp/sgi-agp.c:51:10: warning: Using plain integer as NULL pointer

Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Apr 26, 2007
1 parent 89cf7cc commit b826b4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/char/agp/sgi-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b826b4d

Please sign in to comment.