]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/agp/sgi-agp.c
fix historic ioremap() abuse in AGP
[linux-2.6-omap-h63xx.git] / drivers / char / agp / sgi-agp.c
index ee8f50edde1bd1f320c7ce15002e035be81883b2..98cf8abb3e57f59ab3055934f4f460b3352d9c49 100644 (file)
@@ -47,12 +47,10 @@ 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);
        atomic_inc(&agp_bridge->current_memory_agp);
        return page_address(page);
 }