summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-03-05 22:42:04 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 20:26:26 +0100
commit648bcc771145172a14bc35eeb849ed08f6aa4f1e (patch)
tree3cc7da55d1ca18b46cb0518b3b35c276adc0aad1 /mm/memcontrol.c
parentinclude/linux/fs.h: convert FMODE_* constants to hex (diff)
downloadlinux-648bcc771145172a14bc35eeb849ed08f6aa4f1e.tar.xz
linux-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 '')
-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;
}