]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/mmap.c: use while instead of if+goto
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 7 Apr 2015 23:44:33 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:33 +0000 (09:44 +1000)
commit5e1822a7fdffc04c1fb442014617eef1440f3166
treedc4ed477c54a82f79aae05bd50e5d944abd2373c
parent920888615ca52c02f9bb9e6b57a1a1360041165d
mm/mmap.c: use while instead of if+goto

The creators of the C language gave us the while keyword. Let's use
that instead of synthesizing it from if+goto.

Made possible by 6597d783397a ("mm/mmap.c: replace find_vma_prepare()
with clearer find_vma_links()").

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Roman Gushchin <klamm@yandex-team.ru>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c