mm/ksm.c: use list_for_each_entry_safe
authorGeliang Tang <geliangtang@163.com>
Thu, 14 Jan 2016 23:20:54 +0000 (15:20 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit036404183eb3ebff93dea7b572fc718e9d652c7f
tree48dd8357b96c3ef9253a46565e43feb8222d84f5
parentc8ad6302c2b664e73f0abb3517c16531e294b9d7
mm/ksm.c: use list_for_each_entry_safe

Use list_for_each_entry_safe() instead of list_for_each_safe() to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/ksm.c