Commit 800bca7c authored by Hailong Liu's avatar Hailong Liu Committed by Linus Torvalds

mm/filemap.c: remove else after a return

The `else' is not useful after a `return' in __lock_page_or_retry().

[akpm@linux-foundation.org: coding style fixes]

Link: https://lkml.kernel.org/r/20201202154720.115162-1-carver4lio@163.com
Signed-off-by: Hailong Liu<liu.hailong6@zte.com.cn>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 649c6dfe
...@@ -1583,19 +1583,20 @@ int __lock_page_or_retry(struct page *page, struct mm_struct *mm, ...@@ -1583,19 +1583,20 @@ int __lock_page_or_retry(struct page *page, struct mm_struct *mm,
else else
wait_on_page_locked(page); wait_on_page_locked(page);
return 0; return 0;
} else { }
if (flags & FAULT_FLAG_KILLABLE) { if (flags & FAULT_FLAG_KILLABLE) {
int ret; int ret;
ret = __lock_page_killable(page); ret = __lock_page_killable(page);
if (ret) { if (ret) {
mmap_read_unlock(mm); mmap_read_unlock(mm);
return 0; return 0;
} }
} else } else {
__lock_page(page); __lock_page(page);
return 1;
} }
return 1;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment