diff options
author | Igor Stoppa <igor.stoppa@gmail.com> | 2018-09-07 18:35:26 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-01-15 11:38:05 +1100 |
commit | 63da6caeb84cfad3d1e5774b7049dd1d2c9dec62 (patch) | |
tree | 6a129acf94fc9d19cc0d76b329205718fd58d204 /arch/powerpc/mm/tlb_nohash.c | |
parent | 9bd10b649826774bb5e1e7fb67544e6500e3f005 (diff) | |
download | linux-stable-63da6caeb84cfad3d1e5774b7049dd1d2c9dec62.tar.gz linux-stable-63da6caeb84cfad3d1e5774b7049dd1d2c9dec62.tar.bz2 linux-stable-63da6caeb84cfad3d1e5774b7049dd1d2c9dec62.zip |
powerpc: remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to
wrap it into another.
Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
Cc: Arseny Solokha <asolokha@kb.kras.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/tlb_nohash.c')
-rw-r--r-- | arch/powerpc/mm/tlb_nohash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/powerpc/mm/tlb_nohash.c index ae5d568e267f..ac23dc1c6535 100644 --- a/arch/powerpc/mm/tlb_nohash.c +++ b/arch/powerpc/mm/tlb_nohash.c @@ -302,7 +302,7 @@ void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr, * This function as well as __local_flush_tlb_page() must only be called * for user contexts. */ - if (unlikely(WARN_ON(!mm))) + if (WARN_ON(!mm)) return; preempt_disable(); |