From: Harvey Harrison Date: Mon, 28 Apr 2008 21:13:19 +0000 (-0700) Subject: mm: fix integer as NULL pointer warnings X-Git-Tag: v2.6.26-rc1~691 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7b8ee84d8926e6c6ec584548d23a12f1410b4db7;p=linux-2.6-omap-h63xx.git mm: fix integer as NULL pointer warnings mm/hugetlb.c:207:11: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison Signed-off-by: Linus Torvalds --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index df28c1773fb..2c37c67ed8c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -204,7 +204,7 @@ static struct page *alloc_fresh_huge_page_node(int nid) if (page) { if (arch_prepare_hugepage(page)) { __free_pages(page, HUGETLB_PAGE_ORDER); - return 0; + return NULL; } set_compound_page_dtor(page, free_huge_page); spin_lock(&hugetlb_lock);