diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 17:13:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 20:29:18 -0400 |
commit | 7b8ee84d8926e6c6ec584548d23a12f1410b4db7 (patch) | |
tree | 39ad257e276625771e5112dfa0d5b620532b0fb6 | |
parent | b331d259b1147f82d692f3b866e036017cbde8fe (diff) |
mm: fix integer as NULL pointer warnings
mm/hugetlb.c:207:11: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index df28c1773fb2..2c37c67ed8c9 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -204,7 +204,7 @@ static struct page *alloc_fresh_huge_page_node(int nid) | |||
204 | if (page) { | 204 | if (page) { |
205 | if (arch_prepare_hugepage(page)) { | 205 | if (arch_prepare_hugepage(page)) { |
206 | __free_pages(page, HUGETLB_PAGE_ORDER); | 206 | __free_pages(page, HUGETLB_PAGE_ORDER); |
207 | return 0; | 207 | return NULL; |
208 | } | 208 | } |
209 | set_compound_page_dtor(page, free_huge_page); | 209 | set_compound_page_dtor(page, free_huge_page); |
210 | spin_lock(&hugetlb_lock); | 210 | spin_lock(&hugetlb_lock); |