Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b826b4d6e497f862239c16b25fe864026858aad5
Commit:     b826b4d6e497f862239c16b25fe864026858aad5
Parent:     89cf7ccc936db979e5e9d9ce49437ef859cdd889
Author:     Dave Jones <[EMAIL PROTECTED]>
AuthorDate: Mon Apr 9 02:20:34 2007 -0400
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 14:22:51 2007 -0400

    [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 <[EMAIL PROTECTED]>
---
 drivers/char/agp/sgi-agp.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/char/agp/sgi-agp.c b/drivers/char/agp/sgi-agp.c
index ee8f50e..cda608c 100644
--- a/drivers/char/agp/sgi-agp.c
+++ b/drivers/char/agp/sgi-agp.c
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to