Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b826b4d6 authored by Dave Jones's avatar Dave Jones
Browse files

[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
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);