init/main.c: use list_for_each_entry()
authorGeliang Tang <geliangtang@163.com>
Tue, 15 Mar 2016 21:52:46 +0000 (14:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commite6fd1fb3b5b58fcfa8e546c69d9cb64aa2c5c9b8
treeddf29edade8a5691c395bcb7e8307a94be7e4e63
parente23604edac2a7be6a8808a5d13fac6b9df4eb9a8
init/main.c: use list_for_each_entry()

Use list_for_each_entry() instead of list_for_each() to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/main.c