提交 d3a89233 编写于 作者: Z zhang songyi 提交者: Andrew Morton

include/linux/pgtable.h: : remove redundant pte variable

Return value from ptep_get_and_clear_full() directly instead of taking
this in another redundant variable.

Link: https://lkml.kernel.org/r/202211282107437343474@zte.com.cnSigned-off-by: Nzhang songyi <zhang.songyi@zte.com.cn>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 3cd629e5
...@@ -425,9 +425,7 @@ static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, ...@@ -425,9 +425,7 @@ static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm,
unsigned long address, pte_t *ptep, unsigned long address, pte_t *ptep,
int full) int full)
{ {
pte_t pte; return ptep_get_and_clear(mm, address, ptep);
pte = ptep_get_and_clear(mm, address, ptep);
return pte;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册