projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b331d25
)
mm: fix integer as NULL pointer warnings
author
Harvey Harrison
<harvey.harrison@gmail.com>
Mon, 28 Apr 2008 21:13:19 +0000
(14:13 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 29 Apr 2008 00:29:18 +0000
(17:29 -0700)
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>
mm/hugetlb.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index df28c1773fb2320b940080e4991e223cd065f4f1..2c37c67ed8c90f0cb64265519ad794abcb275a1d 100644
(file)
--- 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);