commit | 32bff4b9053193303b4dd4c5498a1ffc6b23bb2f | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@c-s.fr> | Thu Nov 29 14:07:09 2018 +0000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue Dec 04 19:45:01 2018 +1100 |
tree | 2aff70e3823e4cd896668a3c30ad173ee458ff99 | |
parent | 1e03c7e2ea83b0acac7934e55943d1d4354baa43 [diff] |
powerpc/mm: remove unnecessary test in pgtable_cache_init() pgtable_cache_add() gracefully handles the case when a cache that size already exists by returning early with the following test: if (PGT_CACHE(shift)) return; /* Already have a cache of this size */ It is then not needed to test the existence of the cache before. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>