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) <guoren@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2023-02-01 16:52:54 -05:00
parent 76eeb9b8de
commit 9892775af5
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs)
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;
/*