From: Al Viro Date: Wed, 1 Feb 2023 21:52:54 +0000 (-0500) Subject: csky: remove BS check for FAULT_FLAG_ALLOW_RETRY X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9892775af5a5323a7f15ae1d92d025b5be14c658;p=users%2Fhch%2Fmisc.git csky: remove BS check for FAULT_FLAG_ALLOW_RETRY flags are initialized as FAULT_FLAG_DEFAULT, and the only thing done to that afterwards is |=; since FAULT_FLAG_DEFAULT already includes FAULT_FLAG_ALLOW_RETRY, it's guaranteed to remain there all along. Reviewed-by: Guo Ren (Alibaba Damo Academy) Signed-off-by: Al Viro --- diff --git a/arch/csky/mm/fault.c b/arch/csky/mm/fault.c index a885518ce1dd..a6ca7dff4215 100644 --- a/arch/csky/mm/fault.c +++ b/arch/csky/mm/fault.c @@ -277,7 +277,7 @@ retry: if (fault & VM_FAULT_COMPLETED) return; - if (unlikely((fault & VM_FAULT_RETRY) && (flags & FAULT_FLAG_ALLOW_RETRY))) { + if (unlikely(fault & VM_FAULT_RETRY)) { flags |= FAULT_FLAG_TRIED; /*