summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-03-05 13:42:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 11:26:26 -0800
commit648bcc771145172a14bc35eeb849ed08f6aa4f1e (patch)
tree3cc7da55d1ca18b46cb0518b3b35c276adc0aad1 /mm
parent19adf9c5d5793657118f2002237c0ee49c3b6185 (diff)
downloadlwn-648bcc771145172a14bc35eeb849ed08f6aa4f1e.tar.gz
lwn-648bcc771145172a14bc35eeb849ed08f6aa4f1e.zip
mm/memcontrol.c: fix "integer as NULL pointer" sparse warning
mm/memcontrol.c:2548:32: warning: Using plain integer as NULL pointer Signed-off-by: Thiago Farina <tfransosi@gmail.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 954032b80bed..d813823ab08f 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2545,7 +2545,7 @@ static int mem_cgroup_force_empty_list(struct mem_cgroup *mem,
pc = list_entry(list->prev, struct page_cgroup, lru);
if (busy == pc) {
list_move(&pc->lru, list);
- busy = 0;
+ busy = NULL;
spin_unlock_irqrestore(&zone->lru_lock, flags);
continue;
}