linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/4] mm/memcontrol.c: fix "integer as NULL pointer" warning.
       [not found] <1264349038-1766-1-git-send-email-tfransosi@gmail.com>
@ 2010-01-24 16:03 ` Thiago Farina
  2010-01-24 20:50   ` Balbir Singh
  0 siblings, 1 reply; 2+ messages in thread
From: Thiago Farina @ 2010-01-24 16:03 UTC (permalink / raw)
  To: tfransosi
  Cc: Balbir Singh, Pavel Emelyanov, KAMEZAWA Hiroyuki, Andrew Morton,
	Daisuke Nishimura, Li Zefan, linux-mm, linux-kernel

mm/memcontrol.c:2548:32: warning: Using plain integer as NULL pointer

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
 mm/memcontrol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 954032b..d813823 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;
 		}
-- 
1.6.6.1.383.g5a9f

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 4/4] mm/memcontrol.c: fix "integer as NULL pointer" warning.
  2010-01-24 16:03 ` [PATCH 4/4] mm/memcontrol.c: fix "integer as NULL pointer" warning Thiago Farina
@ 2010-01-24 20:50   ` Balbir Singh
  0 siblings, 0 replies; 2+ messages in thread
From: Balbir Singh @ 2010-01-24 20:50 UTC (permalink / raw)
  To: Thiago Farina
  Cc: Pavel Emelyanov, KAMEZAWA Hiroyuki, Andrew Morton,
	Daisuke Nishimura, Li Zefan, linux-mm, linux-kernel

On Sunday 24 January 2010 09:33 PM, Thiago Farina wrote:
> mm/memcontrol.c:2548:32: warning: Using plain integer as NULL pointer

Looks good to me

Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>

-- 
Three Cheers,
Balbir Singh

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-24 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1264349038-1766-1-git-send-email-tfransosi@gmail.com>
2010-01-24 16:03 ` [PATCH 4/4] mm/memcontrol.c: fix "integer as NULL pointer" warning Thiago Farina
2010-01-24 20:50   ` Balbir Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).